Return to BSD News archive
#! rnews 1320 bsd Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!solace!nntp.uio.no!news.cais.net!newsfeed.internetmci.com!in1.uu.net!EU.net!news.eunet.cz!usenet From: Petr Kodl <pecold@rockwell.cz> Newsgroups: comp.unix.bsd.freebsd.misc Subject: !! shared C++ lib , HELP please !! Date: Fri, 28 Jun 1996 13:44:11 +0000 Organization: Rockwell Automation, s.r.o. Lines: 23 Message-ID: <31D3E1AB.41C67EA6@rockwell.cz> NNTP-Posting-Host: merlin.research.rockwell.cz Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.01 (X11; I; BSD/386 uname failed) I'm trying to build shared C++ library. The static version works fine, but I obtain: _sdiv_qrnd symbol undefined using the same library as dynamic Did I miss something importatnt ? My CFLAGS are: -fpic -O -m486 ..... etc. after that the ld -x -r ... is done on the object (it's coppied from bsd.lib.mk) and finally ld -Bshareable $(OBJECTS) ./usr/lib/c++rt0.o .. -lX11 -lc -lgcc creates the library I had no build problems, but something must be missing in my library, because the undefined symbol error happens during subsequent builds of other programs. Any help appreciated. Thank's in advance Petr