Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-01

SDL.pas Error while linking in Lazarus 0.9.28.2 and 0.9.29

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Pew piffle.the.cat

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

Reply by email

Peter Williams
to Henry Vermaak

Hi Dominique,
This problem occurs with Lazarus on Mint 10 Linux and Windows. A normal Lazarus application does not get this error. I will investigate Delphi XE on my Windows 7 Ultimate system tomorrow as it is 12:14am now and time to make my bed and get some sleep. I will email you later today with some Delphi XE results.

Best Regards,pew

Show quoted text 25 lines
Date: Sat, 15 Jan 2011 15:50:15 +0000 From: To: Subject: Re: [Lazarus] SDL.pas Error while linking in Lazarus 0.9.28.2 and 0.9.29 On 15 January 2011 15:38, Pew (piffle.the.cat) wrote: > > Hi Dominique & all, > > I have tried without success to get a project with only uses SDL to compile. > > /usr/bin/ld: cannot find -lSDL http://wiki.lazarus.freepascal.org/Lazarus_Faq#I_receive_an_error_during_the_linking_that_states_.2Fusr.2Fbin.2Fld_can.27t_find_-l.3Csome_lib.3E On my system (debian) there is a libsdl1.2-dev. It may be similar on ubuntu. Henry -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110119/c3be7cde/attachment.html>

Reply by email

Pew piffle.the.cat
to Henry Vermaak: On 15 January 2011 15:38, Pew (piffle.the.cat)…

Hi Henry,

Henry Vermaak wrote 16 lines
On 15 January 2011 15:38, Pew (piffle.the.cat) wrote: > > Hi Dominique& all, > > I have tried without success to get a project with only uses SDL to compile. > > /usr/bin/ld: cannot find -lSDL http://wiki.lazarus.freepascal.org/Lazarus_Faq#I_receive_an_error_during_the_linking_that_states_.2Fusr.2Fbin.2Fld_can.27t_find_-l.3Csome_lib.3E On my system (debian) there is a libsdl1.2-dev. It may be similar on ubuntu. Henry --

There are more files involved that just that one.

http://pastebin.com/Sg2PgXY6

I think that it will work now.

pew

Show quoted text 5 lines
_______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email