This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: sparc solaris gcc3.3.2 g++ <stl_list.h> macro "erase" passed 1 arguments, but takes just 0
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: "Vadim N. Lyalikov" <vadim-lyalikov at yandex dot ru>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 22 May 2004 22:39:19 +0200
- Subject: Re: sparc solaris gcc3.3.2 g++ <stl_list.h> macro "erase" passed 1 arguments, but takes just 0
- Organization: Integrable Solutions
- References: <40AFC2CB.60507@yandex.ru>
"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