View Single Post
  #1 (permalink)  
Old 04-29-2003
Diego Giraldez Diego Giraldez is offline
Registered User
 
 
Join Date: Apr 2003
Posts: 10
Unhappy Compilation error

I'm using RedHat 7.2 and gcc 3.2; I'm compiling version 1.0.1
Both shared libraries libIceUtil.so and libSlice compiles and links well, but later slice2cpp doesn't. Any ideas? Here are the make output:

make[2]: Entering directory `/home/ax10077/Ice-1.0.1/src/IceUtil'
c++ -c -I../../include -g -ftemplate-depth-128 -fPIC -Wall Exception.cpp
c++ -c -I../../include -g -ftemplate-depth-128 -fPIC -Wall Unicode.cpp
c++ -c -I../../include -g -ftemplate-depth-128 -fPIC -Wall UUID.cpp
c++ -c -I../../include -g -ftemplate-depth-128 -fPIC -Wall RecMutex.cpp
c++ -c -I../../include -g -ftemplate-depth-128 -fPIC -Wall RWRecMutex.cpp
c++ -c -I../../include -g -ftemplate-depth-128 -fPIC -Wall Cond.cpp
c++ -c -I../../include -g -ftemplate-depth-128 -fPIC -Wall Thread.cpp
c++ -c -I../../include -g -ftemplate-depth-128 -fPIC -Wall ThreadException.cpp
c++ -c -I../../include -g -ftemplate-depth-128 -fPIC -Wall Time.cpp
c++ -c -I../../include -g -ftemplate-depth-128 -fPIC -Wall InputUtil.cpp
c++ -c -I../../include -g -ftemplate-depth-128 -fPIC -Wall OutputUtil.cpp
c++ -c -I../../include -g -ftemplate-depth-128 -fPIC -Wall Base64.cpp
rm -f ../../lib/libIceUtil.so.1.0.1
c++ -shared -Xlinker -soname -Xlinker libIceUtil.so.1.0.1 -L../../lib -o ../../lib/libIceUtil.so.1.0.1 Exception.o Unicode.o UUID.o RecMutex.o RWRecMutex.o Cond.o Thread.o ThreadException.o Time.o InputUtil.o OutputUtil.o Base64.o
rm -f ../../lib/libIceUtil.so
ln -s libIceUtil.so.1.0.1 ../../lib/libIceUtil.so
make[2]: Leaving directory `/home/ax10077/Ice-1.0.1/src/IceUtil'

make[2]: Entering directory `/home/ax10077/Ice-1.0.1/src/Slice'
c++ -c -I.. -I../../include -g -ftemplate-depth-128 -fPIC -Wall Scanner.cpp
c++ -c -I.. -I../../include -g -ftemplate-depth-128 -fPIC -Wall Grammar.cpp
c++ -c -I.. -I../../include -g -ftemplate-depth-128 -fPIC -Wall Parser.cpp
c++ -c -I.. -I../../include -g -ftemplate-depth-128 -fPIC -Wall CPlusPlusUtil.cpp
c++ -c -I.. -I../../include -g -ftemplate-depth-128 -fPIC -Wall JavaUtil.cpp
c++ -c -I.. -I../../include -g -ftemplate-depth-128 -fPIC -Wall Preprocessor.cpp
rm -f ../../lib/libSlice.so.1.0.1
c++ -shared -Xlinker -soname -Xlinker libSlice.so.1.0.1 -L../../lib -o ../../lib/libSlice.so.1.0.1 Scanner.o Grammar.o Parser.o CPlusPlusUtil.o JavaUtil.o Preprocessor.o
rm -f ../../lib/libSlice.so
ln -s libSlice.so.1.0.1 ../../lib/libSlice.so
make[2]: Leaving directory `/home/ax10077/Ice-1.0.1/src/Slice'

make[2]: Entering directory `/home/ax10077/Ice-1.0.1/src/slice2cpp'
c++ -c -I. -I../../include -g -ftemplate-depth-128 -fPIC -Wall Gen.cpp
c++ -c -I. -I../../include -g -ftemplate-depth-128 -fPIC -Wall Main.cpp
rm -f ../../bin/slice2cpp
c++ -L../../lib -o ../../bin/slice2cpp Gen.o Main.o -lSlice -lIceUtil -lpthread -luuid
../../lib/libIceUtil.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >:perator[](unsigned) const'
../../lib/libIceUtil.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string [in-charge]()'
../../lib/libIceUtil.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::length() const'
../../lib/libIceUtil.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >:perator+=(wchar_t)'
../../lib/libIceUtil.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::reserve(unsigned)'
../../lib/libIceUtil.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string[in-charge]()'
collect2: ld returned 1 exit status

thanks in advance. Diego.
Reply With Quote