Link to home
Create AccountLog in
Avatar of johnthomaswarner
johnthomaswarner

asked on

gcc build error -- stlport

I am trying to install stlport, the gcc port of the Standard Template Library.
I run the build using the makefile provided by stlport, and receive a gcc compilation error:

/usr/bin/ld: cannot find -lsupc++.
From what I've read, this is included in libstdc++. So I used yum to get the latest version
of libstdc++ and the gcc itself. I am still getting this issue.
Any idea on what to do?

The build generated by the makefile is as follows:


c++ -pthread -fexceptions  -fPIC -O2  -fvisibility=hidden  -D_GNU_SOURCE -I../../stlport   -shared -Wl,-hlibstlport.so.5.2 -nostdlib  -o obj/gcc/so/libstlport.so.5.2.1 /usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.5.1/crtbeginS.o obj/gcc/so/dll_main.o obj/gcc/so/fstream.o obj/gcc/so/strstream.o obj/gcc/so/sstream.o obj/gcc/so/ios.o obj/gcc/so/stdio_streambuf.o obj/gcc/so/istream.o obj/gcc/so/ostream.o obj/gcc/so/iostream.o obj/gcc/so/codecvt.o obj/gcc/so/collate.o obj/gcc/so/ctype.o obj/gcc/so/monetary.o obj/gcc/so/num_get.o obj/gcc/so/num_put.o obj/gcc/so/num_get_float.o obj/gcc/so/num_put_float.o obj/gcc/so/numpunct.o obj/gcc/so/time_facets.o obj/gcc/so/messages.o obj/gcc/so/locale.o obj/gcc/so/locale_impl.o obj/gcc/so/locale_catalog.o obj/gcc/so/facets_byname.o obj/gcc/so/complex.o obj/gcc/so/complex_io.o obj/gcc/so/complex_trig.o obj/gcc/so/string.o obj/gcc/so/bitset.o obj/gcc/so/allocators.o obj/gcc/so/c_locale.o obj/gcc/so/cxa.o  -Wl,--whole-archive -lsupc++  -Wl,--no-whole-archive -lgcc_s -lpthread -lc -lm /usr/lib/gcc/x86_64-redhat-linux/4.5.1/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../lib64/crtn.o


and the results of the build are:
/usr/bin/ld: cannot find -lsupc++
collect2: ld returned 1 exit status
make: *** [obj/gcc/so/libstlport.so.5.2.1] Error 1

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Vryali
Vryali
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of johnthomaswarner
johnthomaswarner

ASKER

Could function as a workaround...was looking for a more elegant solution.