[OFFTOPIC] linking basics (Was Linux: problem linking with SDL)

Yep, realized that, so I tried it and it gives me a heapload of
unresolved dependencies for X11, Xdga, esd, and lots more… way too
much to list here…

that’s what happens when you link statically. Just resolve those by adding
the needed libraries after -lSDL then

if you get an unresolved symbol “gurgle” and don’t know what lib it is
in, just do a “nm --print-file-name /usr/lib/*.{a,so}|grep gurgle” (or
wherever you keep your libs) and see where it is defined (symbol table
entry isn’t marked “U”)

(you need gnu nm for the above to work – if you have traditional unix nm
you have to use a shell loop)

sorry for the offtopic post — I think the list traffic has grown enough
to merit a split now

Mattias Engdeg?rd wrote:

Yep, realized that, so I tried it and it gives me a heapload of
unresolved dependencies for X11, Xdga, esd, and lots more… way too
much to list here…

that’s what happens when you link statically. Just resolve those by adding
the needed libraries after -lSDL then

if you get an unresolved symbol “gurgle” and don’t know what lib it is
in, just do a “nm --print-file-name /usr/lib/*.{a,so}|grep gurgle” (or
wherever you keep your libs) and see where it is defined (symbol table
entry isn’t marked “U”)

Thanks… I tried it all… then I installed SDL 1.1.7 again and
everything worked… dunno why… but now at least I can get on with the
graphics coding. :)–
Jakob F