Ted Ozolins wrote:

I've been trying to compile smpeg-0.4.4 and it keeps crapping out with the following message.
I'm runing Slackware 9.1 (upgraded from 9.0 to 9.1 using swaret) No matter what I try, I get this same ending. Any ideas?


[EMAIL PROTECTED]:/home/ted/smpeg-0.4.4# gcc -g -O2 -I/usr/include/SDL -D_REENTRANT -DTHREADED_AUDIO -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include -DNDEBUG -I.. -DNOCONTROLS -I. -I./audio -I./video -o .libs/plaympeg plaympeg.o .libs/libsmpeg.so -L/usr/lib -lSDL -lpthread -lm -lSDL -lpthread -lm -lSDL -lpthread -lm -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lm
.libs/libsmpeg.so: undefined reference to `operator new[](unsigned)'
.libs/libsmpeg.so: undefined reference to `operator delete(void*)'
.libs/libsmpeg.so: undefined reference to `operator delete[](void*)'
.libs/libsmpeg.so: undefined reference to `operator new(unsigned)'
collect2: ld returned 1 exit status
[EMAIL PROTECTED]:/home/ted/smpeg-0.4.4# .lib


TIA

Firstly IANAE (I am not an expert) but when I get "undefined reference" errors I look at all the -lxxxx statements in the compile command line and make sure I have a corresponding libm or libSDL or libpthread etc in /usr/lib (or wherever your distro keeps your libraries) and also that I have the development headers for those packages installed.





-- James McDonald Singleton Australia

61+ (0)2 65712401
61+ 0428 320 219

Roumanian-Yiddish cooking has killed more Jews than Hitler.
                -- Zero Mostel

Linux 2.4.22 #1 Mon Sep 1 20:03:11 EST 2003 athlon i386 GNU/Linux
17:15:00 up 8 days, 15:16, 1 user, load average: 0.57, 0.19, 0.05


_______________________________________________ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc -> http://smtp.linux-sxs.org/mailman/listinfo/linux-users

Reply via email to