This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Link with shared libraries
- From: Guido dot Arians at gmx dot de
- To: cygwin at cygwin dot com
- Date: Wed, 30 Oct 2002 08:58:22 +0100 (MET)
- Subject: Link with shared libraries
Hi,
I have problems to link together with shared libraries and don't know what
to do!!!
The output of the command line is as follows:
make[4]: Entering directory
`/home/ariansg/build-opt-shared/source/kernel/div'
/bin/bash ../../../libtool --mode=link g++ -g -O2 -g -O2 -Wall -W -O3
-fomit-fr
ame-pointer -funroll-loops -fstrict-aliasing -mpentiumpro -o
libiMOOSEdiv.la
-rpath /usr/local/lib -export-dynamic -no-undefined binio.lo dbginfo.lo
except
ionbase.lo exceptionhandler.lo fequal.lo gzipbuf.lo mallocanalyse.lo
memview.lo
mtime.lo progress.lo shp.lo stdoptargs.lo stream-manager.lo gzstream.lo
zlibbuf.
lo -L/usr/include/lib -lz -lm
*** Warning: This system can not link to static lib archive
/lib/libstdc++.la.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
rm -fr .libs/libiMOOSEdiv.dll.a
g++ -shared -nostdlib /usr/lib/gcc-lib/i686-pc-cygwin/3.2/crtbegin.o
.libs/bini
o.o .libs/dbginfo.o .libs/exceptionbase.o .libs/exceptionhandler.o
.libs/fequal.
o .libs/gzipbuf.o .libs/mallocanalyse.o .libs/memview.o .libs/mtime.o
.libs/prog
ress.o .libs/shp.o .libs/stdoptargs.o .libs/stream-manager.o
.libs/gzstream.o .l
ibs/zlibbuf.o -L/usr/include/lib -lz -L/usr/lib/gcc-lib/i686-pc-cygwin/3.2
-L/u
sr/lib/gcc-lib/i686-pc-cygwin/3.2/../../.. -lcygwin -luser32 -lkernel32
-ladvapi
32 -lshell32 -lgcc /usr/lib/gcc-lib/i686-pc-cygwin/3.2/crtend.o -g -O2 -g
-O2
-Wall -W -O3 -fomit-frame-pointer -funroll-loops -fstrict-aliasing
-mpentiumpro
-Wl,-soname -Wl,cygiMOOSEdiv-0.dll -o .libs/libiMOOSEdiv.dll.a
.libs/binio.o: In function
`_ZNSs12_S_constructIPKcEEPcT_S3_RKSaIcESt20forward_i
terator_tag':
/usr/include/c++/3.2/bits/stl_alloc.h(.text+0x45): undefined reference to
`std::
ios_base::Init::Init[in-charge]()'
-----------snip----------
Especially the warning makes me wonder.
Do I need to install any more packages?
What can I do to overcome the problem?
I've got the latest release of cygwin installed on my computer (1.13.14-1).
The gcc-Version is
Thread model: posix
gcc version 3.2 20020818 (prerelease)
Thanks in advance!
Guido
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/