[Lazarus] SDL.pas Error while linking in Lazarus 0.9.28.2 and 0.9.29

Pew (piffle.the.cat) piffle.the.cat at iinet.net.au
Sat Jan 15 16:38:57 CET 2011


Hi Dominique & all,

I have tried without success to get a project with only uses SDL to 
compile.

/usr/bin/ld: cannot find -lSDL

I don't know where lazarus is getting the -lSDL from as I cannot find it 
in SDL.pas.

I have used Lazarus 0.9.28.2 and 0.9.29 SVN Revision 28968; FPC 2.4.0 
i386-linux-gtk 2

Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 2.4.0-2 [2010/03/06] for i386
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for i386
Compiling project1.lpr
Compiling unit1.pas
project1.lpr(13,6) Hint: Unit "sdl" not used in project1
Compiling resource 
/home/juni/Public/Lazarus_source_code/JEDI-SDLv1.0/lazarus/uFixedWidthFonts/lib/i386-linux/project1.or
Linking project1
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
/usr/bin/ld: cannot find -lSDL
project1.lpr(21,1) Error: Error while linking
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
/usr/bin/ld: cannot find -lSDL
project1.lpr(21,1) Error: Error while linking
project1.lpr(21,1) Fatal: There were 1 errors compiling module, stopping




More information about the Lazarus mailing list