public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: David Greene <greened@eecs.umich.edu>
To: egcs@cygnus.com
Subject: More Template Instantiation Trouble
Date: Sun, 08 Feb 1998 13:45:00 -0000	[thread overview]
Message-ID: <Pine.LNX.3.96.980208163843.2567A-100000@drakh.eecs.umich.edu> (raw)

I have a file I use to manually instantiate templates.

Some of the templates instantiated there use templates
instantated elsewhere.  For example, a class might
have members that are themselves instances of templated
classes.  The problem is, these "extra" templates get 
instantiated when I instantiate the "main" templates.
The linker (x86/Linux/ELF) then complains about
duiplicate symbols.  This happens regardless of whether
I put these instantiation object files into a library
or just list them on the link line.

I tried compiling with -fno-implicit-templates, but
then _nothing_ get instantated (even the templates
I explicitly instantiate!).  

What's the solution to this problem?  The only one
I've found is to put all the instantiations into
one file and wait half an hour for it to compile.

Does this make sense at all?

Thanks for any help!

                               -Dave


                 reply	other threads:[~1998-02-08 13:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.3.96.980208163843.2567A-100000@drakh.eecs.umich.edu \
    --to=greened@eecs.umich.edu \
    --cc=egcs@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).