www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/04/05:41:28

Date: Tue, 4 Jan 2000 11:04:21 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
cc: djgpp AT delorie DOT com
Subject: Re: problem using "templates"
In-Reply-To: <ldl17s01u8jd1oee6uuql2cdsrpp6dj0dc@4ax.com>
Message-ID: <Pine.SUN.3.91.1000104110323.26733F-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 3 Jan 2000, Jason Green wrote:

> D:\>gpp -Wall test.cpp -o test
> d:/djgpp/tmp\ccuAyWLk.o(.text+0xb):test.cpp: undefined reference to
> `foo<int>::bar'
> collect2: ld returned 1 exit status
> 
> I just can't see how this program can compile with g++ on one platform
> but not under DJGPP using the same gcc version.

I think Andris just explained this: G++ is configured differently for
these two platforms (probably because of the different binary file
format used by each platform).  That's why -frepo makes the difference,
AFAIK.

> And I don't see how the C++ libraries could be involved?

I thought about the header files, which are part of the library, and
have executable code in them.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019