[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
undefined symbols using StlPort 4.6 and g++ 3.3
From: |
Michael Hunley |
Subject: |
undefined symbols using StlPort 4.6 and g++ 3.3 |
Date: |
20 May 2004 10:05:02 -0700 |
I am porting a fairly complex app suite from Windows to X86 Solaris.
It is built on Windows using a build script system under Cygwin, but
using the .NET 2002 compilers. On Solaris it is being built using the
same build system under GCC 3.3. It uses StlPort 4.6. I am trying to
get a simple unit test app to link with the app libs and stlport, but
get several undefined symbol errors on some of the stl code the app
uses. The compile/link output is below. I have verified the link
path to stlport is correct. I have also verified that the undefined
symbols are in the libstlport_gcc.a located there using nm with
--demangle and that they are externed. One of my associates has
attempted to build a simple "Hello World" app and gets similar
results.
Can anyone give me a clue as to the problem?
TIA, michael
--------- Compile/link output ----------
cd /home/users/mhunley/astport/test/common/mohohash/
gmake clean all
rm -f *~
rm -rf build
mkdir build
g++ -fPIC -Wall -Wnon-virtual-dtor -DBASELINE= -DENABLE_OGSTRIPPING
-DDROP_ARABIC -DUNIX -D_UNICODE -DUNICODE -D_REENTRANT -DDROP_MLANG
-DSunOS -I. -I/opt/MohoThirdParty/stlport/STLport-4.6/stlport
-I../../../lib/common/mohotstream -I../../../lib/common/utils -c
MohoHashtest.cpp -o build/MohoHashtest.o
g++ -fPIC -shared-libgcc -v build/MohoHashtest.o -L"../../.."
-L"../../../lib/common/utils/dynlink" -lgcc3.3CommonUtilsg
-L"/opt/MohoThirdParty/stlport/STLport-4.6/lib" -lstlport_gcc -o
MohoHashTestg
Reading specs from /opt/sfw/gcc-3/lib/gcc-lib/i386-pc-solaris2.9/3.3/specs
Configured with: ../gcc-3.3/configure --prefix=/opt/sfw/gcc-3
--with-ld=/usr/ccs/bin/ld --with-as=/usr/ccs/bin/as --without-gnu-ld
--without-gnu-as --enable-shared
Thread model: posix
gcc version 3.3
/opt/sfw/gcc-3/lib/gcc-lib/i386-pc-solaris2.9/3.3/collect2 -V -Y
P,/usr/ccs/lib:/usr/lib -Qy -o MohoHashTestg
/opt/sfw/gcc-3/lib/gcc-lib/i386-pc-solaris2.9/3.3/crt1.o
/opt/sfw/gcc-3/lib/gcc-lib/i386-pc-solaris2.9/3.3/crti.o
/usr/ccs/lib/values-Xa.o
/opt/sfw/gcc-3/lib/gcc-lib/i386-pc-solaris2.9/3.3/crtbegin.o
-L../../.. -L../../../lib/common/utils/dynlink
-L/opt/MohoThirdParty/stlport/STLport-4.6/lib
-L/opt/sfw/gcc-3/lib/gcc-lib/i386-pc-solaris2.9/3.3 -L/usr/ccs/bin
-L/usr/ccs/lib -L/opt/sfw/gcc-3/lib/gcc-lib/i386-pc-solaris2.9/3.3/../../..
build/MohoHashtest.o -lgcc3.3CommonUtilsg -lstlport_gcc -lstdc++ -lm
-lgcc_s -lgcc -lc -lgcc_s -lgcc
/opt/sfw/gcc-3/lib/gcc-lib/i386-pc-solaris2.9/3.3/crtend.o
/opt/sfw/gcc-3/lib/gcc-lib/i386-pc-solaris2.9/3.3/crtn.o
ld: Software Generation Utilities - Solaris Link Editors: 5.9-1.373
Undefined first referenced
symbol in file
_STL::ios_base::Init::Init[in-charge]()build/MohoHashtest.o
_STL::ios_base::Init::~Init [in-charge]()build/MohoHashtest.o
_STL::ios_base::_Loc_init::_Loc_init[in-charge]()build/MohoHashtest.o
_STL::ios_base::_M_throw_failure() build/MohoHashtest.o
_STL::ios_base::_Loc_init::~_Loc_init
[in-charge]()build/MohoHashtest.o
_STL::wcerr build/MohoHashtest.o
_STL::cin build/MohoHashtest.o
_STL::wcout build/MohoHashtest.o
_STL::cout build/MohoHashtest.o
ld: fatal: Symbol referencing errors. No output written to
MohoHashTestg
collect2: ld returned 1 exit status
gmake: *** [MohoHashTestg] Error 1
- undefined symbols using StlPort 4.6 and g++ 3.3,
Michael Hunley <=