Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.hawaii.edu!ames!news.larc.nasa.gov!lerc.nasa.gov!magnus.acs.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!swrinde!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!jraynard.demon.co.uk!not-for-mail From: james@jraynard.demon.co.uk (James Raynard) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Problem compiling a shared object Date: 31 May 1996 22:30:32 -0000 Organization: A FreeBSD Box Lines: 28 Message-ID: <4onru8$2sn@jraynard.demon.co.uk> References: <31AE9987.6F59@marben.be> NNTP-Posting-Host: localhost.demon.co.uk X-NNTP-Posting-Host: jraynard.demon.co.uk In article <31AE9987.6F59@marben.be>, Jean-Pierre Morant <jpm@marben.be> wrote: >gcc -g -shared webcall.c ./display.o ./chaine.o ./frmdate.o >./pathfile.o ./des.o ./util.o -o ./webcall.so -I. > >ld: No reference to __DYNAMIC >*** Error code 1 > >???? What does it mean ???? I tried something like this and got gcc: unrecognized option `-shared' Anyway, I think this should be gcc -c -g -fpic webcall.c -I. ld -g -Bshareable webcall.o ... /usr/lib/crt0.o -o ./webcall.so -I. (assuming all the other object files were produced with `gcc -c -fpic' as well). -- James Raynard, Edinburgh, Scotland jraynard@freebsd.org jraynard@dial.pipex.com james@jraynard.demon.co.uk