*BSD News Article 83979


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!howland.erols.net!newsfeed.internetmci.com!portal.gmu.edu!kisa.gmu.edu!elite
From: elite@I_should_put_my_domain_in_etc_NNTP_INEWS_DOMAIN (elite)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: FreeBSD and shared library.
Date: 1 Dec 1996 11:19:09 GMT
Organization: George Mason University, Fairfax, Virginia, USA
Lines: 20
Message-ID: <57rpjd$fh0@portal.gmu.edu>
NNTP-Posting-Host: kisa.gmu.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Newsreader: TIN [version 1.2 PL2]

Hi, I am trying to put together some compiled objects(*.o files) as a
shared library.  When I try to do like :
gcc -o libtest.so -shared obj1.o obj2.o obj3.o ... objn.o
it gives me an error saying:
ld: No reference to __DYNAMIC

I tried to find a library that has to do with this symbol, but couldn't.
Does anyone know how to accomplish this?  It worked fine when I did the exact
same thing under Linux.

Thanks. 


Byung,

byung@ami.net
byung@wam.umd.edu
elite@kisa.gmu.edu
http://www.wam.umd.edu/~byung