Article View: gnu.gcc.help
Article #41637Trouble with STL List
From: Erik Janssens
Date: Thu, 29 Feb 1996 00:00
Date: Thu, 29 Feb 1996 00:00
20 lines
808 bytes
808 bytes
Hi,
When I try to compile the following with gcc 2.7.2:
#include <list.h>
int main()
{
list<int> List;
List.push_front(1);
return 0;
}
I get the following link error:
undefined reference to 'operator new(unsigned long, void *)'
Is there something wrong with my program/compiler/installation ?
Does this compile on other machines ?
thanks,
Erik.
Technical Details
Message-ID:
<31362C2E.300A@ping.be>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,e1db71b3d717cb00,start X-Google-Attributes: gid11318c,public From: Erik Janssens <ping1383@ping.be> Subject: Trouble with STL List Date: 1996/02/29 Message-ID: <31362C2E.300A@ping.be> X-Deja-AN: 141769193 content-type: text/plain; charset=us-ascii organization: PING Belgium mime-version: 1.0 newsgroups: gnu.gcc.help x-mailer: Mozilla 2.0b6a (Win95; I)