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]

I think this is a bug...(arguments given to macro 'erase')


gcc version 2.95.1 19990816 (release)
i586-pc-linux-gnu
The only commandline I used was "g++ main.cpp -o program"

Including ncurses seems to screw up vector::erase.  Adding -lncurses to the commandline makes no difference.  I've attached code that makes my error ("arguments given to macro 'erase'") in the smallest space possible I know how, along with the .ii file gcc makes(in tar.gz).  And that's another thing:  I am a very beginner programmer, only 15, so if this is an error on my part (which it most likely is, but I can't see it), please forgive me!  Thanks!  (Tries to find work-around...)

-Ryan

PS - Is this way of catalogging objects very bad?  Ineffecient?  Is there a better (but hopefully not too complicated) way?  This is part of a program which needs some way to have a pointer to every object...  I hate reading books to learn C++ without knowing how to actually use it!! :-)

main.tar.gz


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