Compile Help


7zark7

Member
Joined
Nov 24, 2005
Messages
124
I get this message

C:\devkitGP2X\demo>make
C:/devkitGP2X/bin/arm-linux-gcc `C:/devkitGP2X/bin/arm-linux-sdl-config --cfla
` -O2 -Wall -Werror -c -o demo.o demo.c
C:/devkitGP2X/bin/arm-linux-g++ -static -o demo.gpe demo.o `C:/devkitGP2X/bin/
m-linux-sdl-config --libs`
demo.o: In function `main':
demo.c:(.text+0xd8): undefined reference to `TTF_Init'
make: *** [demo.gpe] Error 1

i have referenced #include "SDL_ttf.h" in the source file , and i can find this prototype in SDL_ttf.h , so i am guessing i need to set something can anybody help :)
 
missing (at least)
-lSDLmain -lSDL_ttf -lfreetype -lm -lz -lSDL

from the appropriate place in the makefile. Put it in such a place to make it appear after the`... --libs`

P.
 
iam new to gcc so please be patient :) got that bit done but a load more errrors.

i know the gp2x does not have a hardware FP , so maybe i need to set a flag for this..

little more concerned about the errors at the bottom , i am using oddbot's libs , any thoughts...

7Zark7

C:\devkitGP2X\demo>make
C:/devkitGP2X/bin/arm-linux-g++ -static -o demo.gpe demo.o `C:/devkitGP2X/bin/ar
m-linux-sdl-config --libs` -lSDLmain -lSDL_ttf -lfreetype -lm -lz -lSDL
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libSDL_ttf.a(SDL_ttf.o) uses hardware FP, whereas demo.g
pe uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libSDL_ttf.a(SDL_t
tf.o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(ftinit.o) uses hardware FP, whereas demo.g
pe uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(ftin
it.o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(ftbase.o) uses hardware FP, whereas demo.g
pe uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(ftba
se.o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(autohint.o) uses hardware FP, whereas demo
.gpe uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(auto
hint.o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(bdf.o) uses hardware FP, whereas demo.gpe
uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(bdf.
o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(cff.o) uses hardware FP, whereas demo.gpe
uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(cff.
o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(type1cid.o) uses hardware FP, whereas demo
.gpe uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(type
1cid.o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(pcf.o) uses hardware FP, whereas demo.gpe
uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(pcf.
o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(pfr.o) uses hardware FP, whereas demo.gpe
uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(pfr.
o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(psaux.o) uses hardware FP, whereas demo.gp
e uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(psau
x.o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(pshinter.o) uses hardware FP, whereas demo
.gpe uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(pshi
nter.o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(psnames.o) uses hardware FP, whereas demo.
gpe uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(psna
mes.o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(raster.o) uses hardware FP, whereas demo.g
pe uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(rast
er.o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(sfnt.o) uses hardware FP, whereas demo.gpe
uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(sfnt
.o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(smooth.o) uses hardware FP, whereas demo.g
pe uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(smoo
th.o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(truetype.o) uses hardware FP, whereas demo
.gpe uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(true
type.o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(type1.o) uses hardware FP, whereas demo.gp
e uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(type
1.o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(type42.o) uses hardware FP, whereas demo.g
pe uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(type
42.o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(winfnt.o) uses hardware FP, whereas demo.g
pe uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(winf
nt.o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(ftsystem.o) uses hardware FP, whereas demo
.gpe uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(ftsy
stem.o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(ftglyph.o) uses hardware FP, whereas demo.
gpe uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(ftgl
yph.o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(ftgzip.o) uses hardware FP, whereas demo.g
pe uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(ftgz
ip.o)
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: E
RROR: C:/devkitGP2X/lib\libfreetype.a(ftlzw.o) uses hardware FP, whereas demo.gp
e uses software FP
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe: f
ailed to merge target specific data of file C:/devkitGP2X/lib\libfreetype.a(ftlz
w.o)
C:/devkitGP2X/lib\libfreetype.a(type1cid.o): In function `cid_hex_to_binary':
type1cid.c:(.text+0x16c0): undefined reference to `__ctype_b'
C:/devkitGP2X/lib\libfreetype.a(type1.o): In function `T1_Get_Private_Dict':
type1.c:(.text+0xba4): undefined reference to `__ctype_b'
C:/devkitGP2X/lib\libfreetype.a(type1.o): In function `read_binary_data':
type1.c:(.text+0x3270): undefined reference to `__ctype_b'
C:/devkitGP2X/lib\libfreetype.a(type1.o): In function `parse_encoding':
type1.c:(.text+0x3800): undefined reference to `__ctype_b'
C:/devkitGP2X/lib\libfreetype.a(type1.o): In function `parse_dict':
type1.c:(.text+0x4c90): undefined reference to `__ctype_b'
C:/devkitGP2X/lib\libfreetype.a(type1.o):type1.c:(.text+0x7484): more undefined
references to `__ctype_b' follow
make: *** [demo.gpe] Error 1

C:\devkitGP2X\demo>
 
thanks for the replies so far.

i have added this into the makefile so that it shows as bolded, still getting the error though. Is this the correct place ?

C:/devkitGP2X/bin/arm-linux-g++ -static -msoft-float -o demo.gpe demo.o `C:/dev
itGP2X/bin/arm-linux-sdl-config --libs` -lSDLmain -lSDL_ttf -lfreetype -lm -lz
lSDL
c:\devkitgp2x\bin\..\lib\gcc\arm-linux\4.0.2\..\..\..\..\arm-linux\bin\ld.exe:
RROR: C:/devkitGP2X/lib\libSDL_ttf.a(SDL_ttf.o) uses hardware FP, whereas demo.
pe uses software FP
 
Back
Top