Message-ID: <19971104134812.23181.qmail@dns01.ops.usa.net> Reply-To: "Hony" From: "Hony" To: Subject: I have problem with template "list" Date: Tue, 4 Nov 1997 14:48:12 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0000_01BCE930.AC9E78A0" Precedence: bulk This is a multi-part message in MIME format. ------=_NextPart_000_0000_01BCE930.AC9E78A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I need help. I use libg++ 2.7.1 and when I write this small program #include int main() { list num; for(int i =3D 0; i < 10; i++) num.push_front(i); return 0; } linker wrote this error : Error: list.o: In function `construct(int *, int const &)': Error: undefined reference to `operator new(unsigned long, void *)' I don't know if problem is in my program or in library. Please reply answer also to my address . ------=_NextPart_000_0000_01BCE930.AC9E78A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

 I = need help.
I=20 use libg++ 2.7.1 and when I write this small = program



#include=20 <list>

int main()
{

list<int> = num;
for(int i =3D=20 0; i < 10; i++)
    num.push_front(i);
return=20 0;
}

linker wrote this error :

Error: list.o: In = function=20 `construct(int *, int const &)':
Error: undefined reference to = `operator=20 new(unsigned long, void *)'


I don't know if problem is in my = program=20 or in library.

Please reply answer also to my address=20 .

------=_NextPart_000_0000_01BCE930.AC9E78A0--