KDevelop 2.1..2: How to link to SDL?

Harald Fernengel harry at kdevelop.org
Fri Sep 20 16:50:55 BST 2002


On Friday 20 September 2002 17:41, Bettina Rathmann wrote:
> g++ -O2 -O0 -g3 -Wall -I/usr/include/SDL -fno-exceptions -fno-check-new
> -o diablo cl2object.o frame.o framecel.o framecl2.o gfx.o mpq.o
> celobject.o main.o  /usr/lib/libSDL.so -lm /usr/lib/libasound.so
> -L/opt/kde2//lib -ldl -lartsc -L/usr/lib -lesd -laudiofile -lm
> -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lXxf86dga -lXv -ldl -lpthread
> /usr/i486-suse-linux/bin/ld: cannot find -lesd
> collect2: ld returned 1 exit status
> And this is what drives me nuts: I don't need all those libs which
> libtools adds to the linking line. I don't even have esd installed.

Apparently your SDL was compiled against esd or the libtool file is broken.

Check whether you have a file called "libSDL.la" and edit it. Remove "-lesd" 
from the "dependency libs" line and try again (at your own risk ;)). If you 
get unresolved symbols, you have to install libesd.so.

Best regards,

to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«

More information about the KDevelop mailing list