home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.sgi:19027 comp.lang.c++:19718
- Path: sparky!uunet!munnari.oz.au!metro!basser.cs.su.oz.au!swift!otc!swdev!grahamd
- From: grahamd@swdev.research.otca.oz.au (Graham Dumpleton)
- Newsgroups: comp.sys.sgi,comp.lang.c++
- Subject: Re: C++ templates, link simulation.
- Message-ID: <7177@otc.otca.oz>
- Date: 21 Jan 93 23:52:17 GMT
- References: <14240@ecs.soton.ac.uk>
- Sender: news@otc.otca.oz
- Organization: Technical Development Group, OTC Australia
- Lines: 32
-
- In article <14240@ecs.soton.ac.uk>, tpm@ecs (TP Monks) writes:
- >
- > I'm using cfront on an sgi machine and have come across a problem.
- > It appears that the link simulator is not capable of picking up
- > undefined symbols in libraries. I had a quick hunt through the doc
- > but didn't spot any mention of this... perhaps I was too quick..
- >
- > In a large project with several libraries, isn't it a reasonable to want to
- > use libraries containing template definitions, and to link into these
- > relying on a common repository to allow undefined symbols to be resolved.
- >
- > Isn't it a pain to have lots of template definition files kicking around
- > which aren't in a library?
- >
- > Please could someone point me to a ref for this.
-
- I assume that compiler you are using is based on AT&T 3.0 or 3.0.1. In both
- of these versions the compiler only looks in libraries which are linked on
- the command line using an explicit pathname. ie. .../libfoo.a. The compiler
- does not resolve a library link directive of the form -lfoo into an
- absolute pathname before passing it onto the link simulator. So if you are
- using -lfoo then you might want to try giving the pathname to the library
- instead. This is a real pain if you wanted to use a shared library. :-(
-
- From what I have heard this problem will be fixed in the AT&T version 3.0.2
- compiler.
-
- BTW, we have hacked our CC script to fix this. If your compiler still uses
- a shell script for CC and your interested in the fix then mail me.
-
- --
- Graham Dumpleton (grahamd@swdev.research.otca.oz.au)
-