Fwd: kdemultimedia-3.1rc5 - build error in /mpeglib/example/mpgplay

Matthias Welwarsky matze at stud.fbi.fh-darmstadt.de
Mon Dec 30 09:10:26 GMT 2002


On Monday 30 December 2002 09:45, Vadim Plessky wrote:
> Hi,
> Can someone from multimedia gurus help with problem described below?
> Pls cc: me directly, as I am not subscribed to kde-multimedia mailing list
>
> Regards,
>
> Vadim
>

> i586-mandrake-linux-gnu-g++  -Wnon-virtual-dtor -Wno-long-long -Wundef
> -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
> -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG
> -DNO_DEBUG -O2 -O3 -pipe -mcpu=pentiumpro -march=i586 -ffast-math
> -fno-strength-reduce -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE
> -DQT_NO_ASCII_CAST    -o mpgplay -L/usr/X11R6/lib -L/usr/lib/qt3/lib
> -L/usr/lib   mpgplay.o ../../lib/libmpeg.la -lX11 -lXext -lm -lstdc++ -lXv
> -lXxf86dga  -lXxf86vm  -lcdda_paranoia -lcdda_interface  -lvorbisfile
> -lvorbis -logg -lpthread
> mpgplay.o: In function `main':
> mpgplay.o(.text+0xa0): undefined reference to `cout'
> mpgplay.o(.text+0xa5): undefined reference to `ostream::operator<<(char
> const *)'
> mpgplay.o(.text+0xad): undefined reference to `endl(ostream &)'
> mpgplay.o(.text+0xc2): undefined reference to `cout'
> mpgplay.o(.text+0xc7): undefined reference to `ostream::operator<<(char
> const *)'
> mpgplay.o(.text+0xcf): undefined reference to `endl(ostream &)'
> mpgplay.o(.text+0xef): undefined reference to `cout'
> mpgplay.o(.text+0xf4): undefined reference to `ostream::operator<<(char
> const *)'
> mpgplay.o(.text+0xfc): undefined reference to `endl(ostream &)'
> mpgplay.o(.text+0x119): undefined reference to `cout'
> mpgplay.o(.text+0x11e): undefined reference to `ostream::operator<<(char
>  const *)'
> mpgplay.o(.text+0x126): undefined reference to `endl(ostream &)'
> ../../lib/.libs/libmpeg.so: undefined reference to `cerr'
> ../../lib/.libs/libmpeg.so: undefined reference to
> `ostream::operator<<(unsigned long)'
> ../../lib/.libs/libmpeg.so: undefined reference to
>  `ostream::operator<<(char)' ../../lib/.libs/libmpeg.so: undefined
> reference to `ostream::operator<<(long)' ../../lib/.libs/libmpeg.so:
> undefined reference to `ostream::operator<<(void const *)'
> ../../lib/.libs/libmpeg.so: undefined reference to
> `ostream::operator<<(double)'
> ../../lib/.libs/libmpeg.so: undefined reference to
> `ostream::operator<<(long long)'
> ../../lib/.libs/libmpeg.so: undefined reference to
> `ostream::operator<<(int)' ../../lib/.libs/libmpeg.so: undefined reference
> to
> `ostream::operator<<(unsigned int)'
> collect2: ld returned 1 exit status

>
> Any idea what is going wrong?

Seems you need to explicitely link -liostream

regards,
	matze

-- 
Matthias Welwarsky
Fachschaft Informatik FH Darmstadt
Email: matze at stud.fbi.fh-darmstadt.de

"all software sucks equally, but some software is more equal"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-multimedia/attachments/20021230/6e194941/attachment.sig>


More information about the kde-multimedia mailing list