Co to ma być?

> gcc -m32 -o glxinfo -O2 -fno-strength-reduce -fno-strict-aliasing -std=gnu9x 
> -pedantic
>     -Wall -Wpointer-arith -Wundef     
> -L/home/users/pluto/rpm/BUILD/X11-6.8.2/xc/exports/lib
>     glxinfo.o -lGLU -lGL -lXext -lX11  -lpthread -lm
>     -Wl,-rpath-link,/home/users/pluto/rpm/BUILD/X11-6.8.2/xc/exports/lib
> /usr/bin/../lib/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
> /usr/bin/../lib/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
> /usr/bin/../lib/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
> /usr/bin/../lib/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
> /usr/bin/../lib/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
> /usr/bin/../lib/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
> /usr/bin/../lib/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
> /usr/bin/../lib/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
> /usr/bin/../lib/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
> /usr/bin/../lib/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
> /usr/bin/../lib/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
> collect2: ld returned 1 exit status
> make: *** [glxinfo] Błąd 1
> 
> --- X11-6.8.2/xc/programs/glxinfo/Imakefile.orig        2004-04-23 
> 21:54:33.000000000 +0200
> +++ X11-6.8.2/xc/programs/glxinfo/Imakefile     2005-03-31 20:08:04.000000000 
> +0200
> @@ -5,7 +5,7 @@
>  #if BuildGLULibrary
> 
>          DEPLIBS = $(DEPGLULIB) $(DEPGLXLIB) $(DEPXLIB)
> -LOCAL_LIBRARIES = $(GLULIB) $(GLXLIB) $(XLIB)
> +LOCAL_LIBRARIES = $(GLULIB) -lstdc++ $(GLXLIB) $(XLIB)
>          DEFINES = -DDO_GLU
> 
>  #else

Napraw sobie toolchain zamiast wpychać workaroundy do linkowania
wszystkich programów korzystających z API C eksportowane przez biblioteki
pisane częściowo w C++.

Czy aby na pewno libstdc++.so i libstdc++.so.6 wskazują na tę samą
bibliotekę?


-- 
Jakub Bogusz    http://cyber.cs.net.pl/~qboosh/

_______________________________________________
pld-devel-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl

Odpowiedź listem elektroniczym