
20 Jul
2005
20 Jul
'05
3:34 a.m.
Am Montag, 18. Juli 2005 18:46 schrieb yin:
[...] ld-options: -L/usr/lib -Wl -rpath /usr/lib -lSDL
This looks a bit suspicious: The syntax for ld options is "-rpath DIR", so the option for gcc should be "-Wl,-rpath,DIR". Ugly, but I didn't invent that. :-) Furthermore, I've never seen a Linux/*nix system where the (dynamic) linker doesn't look into /usr/lib, so probably the best way is to simply use: ld-options: -lSDL In addition, the -rpath option can be a bit surprising for the user of the executable later, depending on OS/platform peculiarities. Cheers, S.