:: PlayerAdvance.org ::  

Pr嶰嶮ent   :: PlayerAdvance.org :: > :: Forums H嶵erg廥 :: > 無ibrary

無ibrary Official 無ibrary forum (English / Fran蓷is)

Publicit

R廧onse
 
Outils de la discussion Modes d'affichage
Vieux 30/01/2009, 10h02   #1
mashupishu
Newbie
 
Date d'inscription: 30/01/2009
Messages: 1
Par d嶨aut Undefined reference to SIN_bin

Hello to everyone around here. First off all, I must apologize for not writing in French (15 days on Dol-de-Bretagne are not sufficient ).

Well I am having a problem with the library, I am trying to compile the examples to check that the build environment is set up correctly, but when I try to run make on any of the examples I have the following output:

Code:
arm-eabi-g++ -g -mthumb-interwork -mno-fpu -specs=ds_arm9.specs main.o -L/D/NDS/devkitPro/libnds/lib -lul -lpng -lz -lfat -lnds9 -o build.elf
d:/NDS/devkitPro/libnds/lib\libul.a(ulDrawImage.o): In function `ulDrawImage':
C:\Users\Florian\Documents\Code\NDS\uLibrary\Source/image/ulDrawImage.c:131: undefined reference to `SIN_bin'
C:\Users\Florian\Documents\Code\NDS\uLibrary\Source/image/ulDrawImage.c:131: undefined reference to `COS_bin'
collect2: ld returned 1 exit status
make[1]: *** [/d/NDS/Tools/uLibrary/Examples/Example01/Example01.elf] Error 1
make: *** [build] Error 2
I can compile libnds examples and build my own programs without problems, for the installation of the library I went to the folder Install, modify the .bat file for my devkitpro folder and all seems to be ok, but I am still getting this error.

I had checked the file ulDrawImage.c and at line 131 there is no any call to SIN_bin or similar, so I tried to compile the library from source giving:

Code:
arm-eabi-gcc -g -Wall -O2 -mcpu=arm946e-s -mtune=arm946e-s -fomit-frame-pointer -ffast-math -mthumb-interwork  -DARM9 -I/D/NDS/devkitPro/libnds/include -I/d/NDS/Tools/uLibrary/Source -I/D/NDS/devkitPro/PAlib/include/nds   -c -o drawing.o drawing.c
drawing.c: In function 'ulInitDualScreenMode':
drawing.c:75: error: 'SUB_BG2_CR' undeclared (first use in this function)
drawing.c:75: error: (Each undeclared identifier is reported only once
drawing.c:75: error: for each function it appears in.)
drawing.c:76: error: 'SUB_BG2_XDX' undeclared (first use in this function)
drawing.c:77: error: 'SUB_BG2_XDY' undeclared (first use in this function)
drawing.c:78: error: 'SUB_BG2_YDX' undeclared (first use in this function)
drawing.c:79: error: 'SUB_BG2_YDY' undeclared (first use in this function)
drawing.c:80: error: 'SUB_BG2_CY' undeclared (first use in this function)
drawing.c:81: error: 'SUB_BG2_CX' undeclared (first use in this function)
make: *** [drawing.o] Error 1
Anyone knows what I am doing wrong? Thanks in advance and best regards.
mashupishu est d嶰onnect   R廧onse avec citation

Publicit

Vieux 12/03/2009, 16h34   #2
morukutsu
Membre
 
Date d'inscription: 20/03/2007
Localisation: Dijon
Messages: 36
Par d嶨aut

Hi, sorry I don't check this forum often.
It seems that you're using the lastest libnds and devkitarm.

I have made a very simple update which fix this problem : http://dl.free.fr/vok3qyTkj

__________________
Mon DevBlog
morukutsu est d嶰onnect   R廧onse avec citation
R廧onse

Liens sociaux

Publicit



Utilisateurs regardant la discussion actuelle : 1 (0 membre(s) et 1 invit(s))
 
Outils de la discussion
Modes d'affichage

R銶les de messages
Vous ne pouvez pas cr嶪r de nouvelles discussions
Vous ne pouvez pas envoyer des r廧onses
Vous ne pouvez pas envoyer des pi鋃es jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activ嶪s : oui
Les smileys sont activ廥 : oui
La balise [IMG] est activ嶪 : oui
Le code HTML peut 皻re employ : non
Navigation rapide

Discussions similaires
Discussion Auteur Forum R廧onses Dernier message
NDS Installation de PALib sous Linux KerneL Tutoriels 83 06/03/2010 23h54
PSP OSLIB 2.10 Compiler Errors pspmasterpro Aide au d憝eloppement 5 27/01/2009 02h55
無ibrary Aide undefined reference error Frosty Chao 無ibrary 12 05/03/2008 17h28
PSP R廥olu OSlib et PSPDEV spyk Aide au d憝eloppement 5 04/06/2006 17h21


Fuseau horaire GMT +2. Il est actuellement 19h19.


丼it par : vBulletin® version 3.7.2
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd. Tous droits r廥erv廥.
Version fran蓷ise #16 par l'association vBulletin francophone
Design par Ass-Itch, DJP et Dr.Vince