Date: Tue, 12 Nov 2002 01:11:21 -0500 From: "T.M. Sommers" <tms2@mail.ptd.net> To: freebsd-chat@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Unresolved reference compiling Objective-C ?? Message-ID: <3DD09B89.F1247399@mail.ptd.net> References: <20021108173235.GA82490@dogma.freebsd-uk.eu.org> <xzpvg35xza5.fsf@flood.ping.uio.no> <20021111234035.GA17831@dogma.freebsd-uk.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Jonathon McKitrick wrote: > > On Sun, Nov 10, 2002 at 03:41:38PM +0100, Dag-Erling Smorgrav wrote: > | In other words: always specify libraries at the end of the compiler or > | linker command line. > > So why allow putting them at the beginning, where mistakes like this can > happen? Is that ever useful? Would it be wrong to 'assume' all libraries > be linked after all object files? Yes. At least in C and C++, the startup library (which calls main()), at least, must go first. Normally the compiler does this automatically, but you might want to do it yourself. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DD09B89.F1247399>