sparc solaris gcc3.3.2 g++ <stl_list.h> macro "erase" passed 1 arguments, but takes just 0
Gabriel Dos Reis
gdr@integrable-solutions.net
Sat May 22 21:56:00 GMT 2004
"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
More information about the Gcc-help
mailing list