This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Problem with running this simple program
- To: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
- Subject: Problem with running this simple program
- From: "DUHRA,SARABJEET (HP-Cupertino,ex1)" <sarabjeet_duhra at am dot exch dot hp dot com>
- Date: Thu, 31 Aug 2000 15:21:23 -0600
Hi ,
I have built the native gcc compiler ver 2.95.2 on a D Class HPUX
B.11.00 9000/820 machine.I am having problem with compiling even simple
program like this one .
#include<list>
int main()
{
list<int> lst;
lst.push_front(1);
lst.push_front(2);
return 0;
}
The errors are as follows:
In file included from
/opt/gnu/lib/gcc-lib/hppa2.0-hp-hpux/2.95.2/include/new.h:6,
from
/opt/gnu/lib/gcc-lib/hppa2.0-hp-hpux/2.95.2/../../../../include/g++-3/stl_al
gobase.h:52,
from
/opt/gnu/lib/gcc-lib/hppa2.0-hp-hpux/2.95.2/../../../../include/g++-3/list:3
0,
from test.cpp:1:
/opt/gnu/lib/gcc-lib/hppa2.0-hp-hpux/2.95.2/include/new:28: `operator new'
takes type `size_t' as first parameter
/opt/gnu/lib/gcc-lib/hppa2.0-hp-hpux/2.95.2/include/new:29: `operator new'
takes type `size_t' as first parameter
/opt/gnu/lib/gcc-lib/hppa2.0-hp-hpux/2.95.2/include/new:32: `operator new'
takes type `size_t' as first parameter
/opt/gnu/lib/gcc-lib/hppa2.0-hp-hpux/2.95.2/include/new:33: `operator new'
takes type `size_t' as first parameter
/opt/gnu/lib/gcc-lib/hppa2.0-hp-hpux/2.95.2/include/new:38: `operator new'
takes type `size_t' as first parameter
/opt/gnu/lib/gcc-lib/hppa2.0-hp-hpux/2.95.2/include/new:39: `operator new'
takes type `size_t' as first parameter
Any clue as to what is wrong?.
regards
sarab