public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
To: madhur_sharma@hotmail.com
Cc: gnu@gnu.org, help-gcc@gnu.org
Subject: Re: HELP : gcc compilation for TEMPLATE HANDLING
Date: Tue, 14 Mar 2000 12:46:00 -0000	[thread overview]
Message-ID: <200003142040.VAA00899@loewis.home.cs.tu-berlin.de> (raw)
In-Reply-To: <200003141921.OAA19609@delysid.gnu.org>

> was using the gcc compiler for compiling my programs which use
> internal templates . with the default option -fno-external-templates
> . while linking the programs i got a lot of symbol refersncing
> errors and they were for the templates only .

> i cud not understand how to fix this problem using #pragma interface in my 
> header files which use templates.
> 	please cud u help me on this issue.

I'm not sure I can help; you did not say what processor and operating
system you are using gcc on. On Linux and other ELF-based systems, I
recommend to forget about -fno-external-templates, and trust the
instantiation mechanism provided by the compiler. At latest, the
linker will remove duplicate instantiations should they happen.

Regards,
Martin

WARNING: multiple messages have this Message-ID
From: "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
To: madhur_sharma@hotmail.com
Cc: gnu@gnu.org, help-gcc@gnu.org
Subject: Re: HELP : gcc compilation for TEMPLATE HANDLING
Date: Sat, 01 Apr 2000 00:00:00 -0000	[thread overview]
Message-ID: <200003142040.VAA00899@loewis.home.cs.tu-berlin.de> (raw)
Message-ID: <20000401000000.I8Leb-SCjDmCVWVNLrycNmOz4h6vT-JdvGg8qkq7jiM@z> (raw)
In-Reply-To: <200003141921.OAA19609@delysid.gnu.org>

> was using the gcc compiler for compiling my programs which use
> internal templates . with the default option -fno-external-templates
> . while linking the programs i got a lot of symbol refersncing
> errors and they were for the templates only .

> i cud not understand how to fix this problem using #pragma interface in my 
> header files which use templates.
> 	please cud u help me on this issue.

I'm not sure I can help; you did not say what processor and operating
system you are using gcc on. On Linux and other ELF-based systems, I
recommend to forget about -fno-external-templates, and trust the
instantiation mechanism provided by the compiler. At latest, the
linker will remove duplicate instantiations should they happen.

Regards,
Martin

  reply	other threads:[~2000-03-14 12:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-14 11:21 Madhur Sharma
2000-03-14 12:46 ` Martin v. Loewis [this message]
2000-04-01  0:00   ` Martin v. Loewis
2000-04-01  0:00 ` Madhur Sharma

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=200003142040.VAA00899@loewis.home.cs.tu-berlin.de \
    --to=martin@loewis.home.cs.tu-berlin.de \
    --cc=gnu@gnu.org \
    --cc=help-gcc@gnu.org \
    --cc=madhur_sharma@hotmail.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).