public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: David Edelsohn <dje@watson.ibm.com>
To: Arun Saini <arunsaini@yahoo.com>
Cc: gcc@gcc.gnu.org
Subject: Re: Undefined reference to static member in templated class
Date: Wed, 18 Jul 2001 12:25:00 -0000	[thread overview]
Message-ID: <200107181925.PAA20730@makai.watson.ibm.com> (raw)
In-Reply-To: <20010718164254.68869.qmail@web10506.mail.yahoo.com>

>>>>> Arun Saini writes:

Arun> I am using gcc-2.95.3 on AIX 4.3.3 / RS/6000. I am enclosing here a small
Arun> piece of code that compiled and executed correctly on gcc-3.0 on a Linux
Arun> system. It however fails on the AIX system.

	GCC has known problems with templates on AIX because GCC does not
have a very advanced template generation facility and relies on WEAK
symbols to clean up after it.  AIX does not provide WEAK symbols.

	For AIX, one needs to use -fno-implicit-templates option for GCC
and explicitly instantiate the necessary templates in the code.

David

      reply	other threads:[~2001-07-18 12:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-18  9:43 Arun Saini
2001-07-18 12:25 ` David Edelsohn [this message]

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=200107181925.PAA20730@makai.watson.ibm.com \
    --to=dje@watson.ibm.com \
    --cc=arunsaini@yahoo.com \
    --cc=gcc@gcc.gnu.org \
    /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).