[fpc-devel] linking with SDL libs fails.

Dr. Karl-Michael Schindler schindler at physik.uni-halle.de
Wed Apr 6 00:59:45 CEST 2005


Hi

when compiling lentilwars from Almindor, I encounter the following 
error when linking. This is definitely a problem above my level :)

btw. The SDL libs are installed through fink and are found. Any hints 
are welcome.

Here comes the log:

michael-pbook-ep3:~/Desktop/Downloads/Lentilwars michael$ make
fpc -Fubasesdl -Fulnet -Fiinclude -Filnet -Si -O2 -XX -Xs lentilwars.pas
Target OS: Darwin for PowerPC
Compiling lentilwars.pas
Compiling ./basesdl/SDL.pas
Assembling sdl
Compiling ./basesdl/SDL_Mixer.pas
Assembling sdl_mixer
Compiling Main.pas
Compiling lBlitter.pas
Assembling lblitter
Compiling lBlittersdl.pas
Compiling ./basesdl/SDL_Image.pas
Assembling sdl_image
Compiling ./basesdl/SDL_Ttf.pas
Assembling sdl_ttf
Assembling lblittersdl
Compiling lAddons.pas
Compiling ./lnet/lNet.pas
Assembling lnet
Assembling laddons
Compiling lscoreboard.pas
Assembling lscoreboard
Assembling main
Compiling LentilForm.pas
Compiling Menu.pas
Assembling menu
Assembling lentilform
Assembling lentilwars
Linking lentilwars
/usr/bin/ld: /usr/lib/crt1.o illegal reference to symbol: __objcInit 
defined in indirectly referenced dynamic library 
/usr/lib/libobjc.A.dylib
lentilwars.pas(101,1) Error: Error while linking
Error: /pp/bin/ppcppc returned an error exitcode (normal if you did not 
specifiy a source file to be compiled)
make: *** [all] Error 1





More information about the fpc-devel mailing list