*BSD News Article 32221


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!EU.net!uknet!festival!edcogsci!richard
From: richard@cogsci.ed.ac.uk (Richard Tobin)
Subject: Re: static/dynamic linking
Message-ID: <Cs5xvA.AGz@cogsci.ed.ac.uk>
Organization: HCRC, University of Edinburgh
References: <2urqvp$hq4@paperboy.gsfc.nasa.gov>
Date: Wed, 29 Jun 1994 14:35:33 GMT
Lines: 14

In article <2urqvp$hq4@paperboy.gsfc.nasa.gov> pcoleman@xpert.stx.com writes:
>Could someone help me with this.  When I link dynamically everything works
>fine but if I do a static link I get all kinds of undefined symbols.  Why
>does this happen?

Perhaps you have the libraries listed in the wrong order?  The order
matters for static linking.  Each library should come before any that
it uses.

-- Richard
-- 
Richard Tobin, HCRC, Edinburgh University                 R.Tobin@ed.ac.uk

On the net, no-one knows that you're a tentacle