www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/18/01:37:18

Date: Mon, 18 Nov 1996 08:17:10 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Christian Mangold <e8426311 AT stud2 DOT tuwien DOT ac DOT at>
Cc: djgpp AT delorie DOT com
Subject: Re: STL-example - Linking problem
In-Reply-To: <328f421b.8751280@news.tuwien.ac.at>
Message-Id: <Pine.SUN.3.91.961118081431.15028F-100000@is>
Mime-Version: 1.0

On Sun, 17 Nov 1996, Christian Mangold wrote:

> gcc accum1.o -frepo -frtti -lgpp -o test
> accum1.o: In function `main':
> accum1.cc:14: undefined reference to `vector<int>::vector(unsigned
[snip]
> Any advice to get this example run would be very welcome.

Advice: read the DJGPP FAQ list.  Section 8.7 there explains that you 
should either use gxx instead of gcc when linking C++ programs or append 
all the C++ libraries to the link command lines if you insist on using 
gcc.

The latest version of the FAQ is available as v2/faq202b.zip from the 
same place you get DJGPP.

- Raw text -


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