Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!lucy.swin.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!howland.erols.net!vixen.cso.uiuc.edu!milo.mcs.anl.gov!maverick.mcs.anl.gov!balay From: balay@maverick.mcs.anl.gov (Satish Balay) Newsgroups: comp.unix.bsd.freebsd.misc,gnu.gcc.help,gnu.g++.help Subject: Error While creating shared libs on freebsd using gcc Date: Tue, 3 Sep 1996 22:35:20 GMT Organization: Argonne National Laboratory, Chicago, Illinois Lines: 26 Distribution: world Message-ID: <8417901202084@maverick.mcs.anl.gov> NNTP-Posting-Host: maverick.mcs.anl.gov Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:26652 gnu.gcc.help:17391 gnu.g++.help:13224 Hi, I'm trying to create shared libraries on freebsd using gcc. And I get the following error. Could you tell me what I'm doing wrong? Thanks. Satish ----------- oban:/home/balay/junk>uname -a FreeBSD oban.mcs.anl.gov 2.1.0-RELEASE FreeBSD 2.1.0-RELEASE #0: Fri Aug 30 11:44:26 CDT 1996 gomberg@adonis.mcs.anl.gov:/usr/src/sys/compile/MCS_EXP i386 oban:/home/balay/junk>gcc -v Reading specs from /usr/local/gcc-2.7.2/lib/gcc-lib/i386-unknown-freebsd/2.7.2/specs gcc version 2.7.2 oban:/home/balay/junk>gcc -c -fPIC 1.c 2.c oban:/home/balay/junk>ls -l 1.o 2.o -rw-r--r-- 1 balay spcprj 296 Sep 3 17:32 1.o -rw-r--r-- 1 balay spcprj 400 Sep 3 17:32 2.o oban:/home/balay/junk>gcc -shared -o libx.so.1.0 1.o 2.o ld: No reference to __DYNAMIC