This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: -frepo option on gcc2.95 snapshots
- To: "Smithers, Kit" <kit dot smithers at eds dot com>
- Subject: RE: -frepo option on gcc2.95 snapshots
- From: "Jerry Quinn" <jquinn at nortelnetworks dot com>
- Date: Fri, 23 Jul 1999 09:51:05 -0400 (EDT)
- Cc: gcc at gcc dot gnu dot org
- References: <F134B35F65F0CF11B9DB00805FD68957CAC3EB@GBHDM001>
>> "ks" == Smithers, Kit <kit.smithers@eds.com> writes:
ks> Apologies for my first incomplete email. Finger trouble fired off this
ks> email before I had even started to write it.
>> I'm trying to use the -frepo option.
ks> I've found various sources of information on using this option typically
ks> they follow the form that can be found on:
ks> http://www.cygnus.com/pubs/gnupro/2_comp/Using_GNU_CC/gccWheres_the_Template
ks> .html
ks> Which is helpful but a little short on detail. In particular I'm
ks> interested in the steps I would take when building a number of static
ks> libraries (.a) for linking together at a later stage. Can anyone point to
ks> me to some more useful documentation in this area or offer me some advice
ks> on its use. I've searched newsgroups and the web for references and
ks> discussions but I've failed to come up with much beyond the link above
ks> (or copies of the same text).
Through experience, I find that when you build a library with -frepo, during
the link/instantiation step you have to also link in any c++ libraries it
depends on. I think this is because a base library may contain an
instantiation so the instantion pass needs to see that to avoid putting
another copy in the dependent library. Otherwise you get duplicate symbols
when using them together in an application. Such is life on HP :-(
As an aside, the docs about templates mentions plans for building a sane
hybrid approach to instantiation in the future. Can anyone in charge shed
some light on what sort of timetable there may be for this feature? gcc 3.0?
Later?
Thanks,
--
Jerry Quinn Tel: (514) 761-8737
jquinn@nortelnetworks.com Fax: (514) 761-8505
Speech Recognition Research