Problem with running this simple program

DUHRA, SARABJEET (HP-Cupertino, ex1) sarabjeet_duhra@am.exch.hp.com
Thu Aug 31 14:40:00 GMT 2000


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




More information about the Gcc-bugs mailing list