Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 30 Oct 2002 08:58:22 +0100 (MET) From: Guido DOT Arians AT gmx DOT de To: cygwin AT cygwin DOT com MIME-Version: 1.0 Subject: Link with shared libraries X-Priority: 3 (Normal) X-Authenticated-Sender: #0011117348 AT gmx DOT net X-Authenticated-IP: [193.159.176.134] Message-ID: <16512.1035964702@www29.gmx.net> X-Flags: 0001 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit 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/