This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: sparc solaris gcc3.3.2 g++ <stl_list.h> macro "erase" passed 1 arguments, but takes just 0


"Vadim N. Lyalikov" <vadim-lyalikov@yandex.ru> writes:

| g++ main.cpp
| In file included from /usr/local/include/c++/3.3.2/list:71,
|                  from SimpleSolver.h:3,
|                  from main.cpp:46:
| /usr/local/include/c++/3.3.2/bits/stl_list.h:734:38: macro "erase"
| passed 1 arguments, but takes just 0

This is not a GCC/g++ problem.

You did not show what it in main.cpp.  But, judging from the diagnostic
message, you or someone decided to define a macro named "erase".
That of course is not a good idea if you're planning to program in C++.
I would suggest you hunt that "erase" macro.

-- Gaby


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