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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Vadim N. Lyalikov" <vadim-lyalikov@xxxxxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux