This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem with running this simple program


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]