[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Is libsdl1.2 badly linked?



[CC:ed to debian-devel as this could be a common question]
On Mon, 2001-10-22 at 21:32, Santiago Garcia Mantinan wrote:
> mantinan@pul:~$ gcc hello.c -lSDL -lpthread /usr/X11R6/lib/libXxf86dga.a
> /usr/X11R6/lib/libXxf86vm.a /usr/X11R6/lib/libXv.a -o hello
> mantinan@pul:~$ gcc hello.c -lSDL -o hello
[undefined stuff]

To give more information on what Aaron said:

You'll have to read the information Branden Robinson posted here not too
long ago. The short of it is, use sdl-config --libs, unless you're
creating a library; in that case, use sdl-config --library-libs.

So, your gcc line would become

gcc hello.c -o hello `sdl-config --libs` `sdl-config --cflags`

(most likely).

-- 
Joe Drew <hoserhead@woot.net> <drew@debian.org>

Please encrypt email sent to me.



Reply to: