| | |
curses problem
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
i have a problem with curses
my program is working properly, but when i include curses.h,
it produces errors i can't understand..
macro "erase" passed 1 arguments, but takes just 0
and statement cannot resolve address of overloaded function
if i remove curses.h, the program compiles..
thx for helping..
my program is working properly, but when i include curses.h,
it produces errors i can't understand..
classmates.erase(classmates.begin() + i); and the error is:macro "erase" passed 1 arguments, but takes just 0
and statement cannot resolve address of overloaded function
if i remove curses.h, the program compiles..
thx for helping..
I am living in a mere program...
edit curses.h and look around about line 559, and 1017 or so. My copy of curses.h, however includes this:
Which in theory should fix your issue. I guess you could do something like this at the top of your code:
should probably fix it, or even a simple
C++ Syntax (Toggle Plain Text)
/* these names conflict with STL */ #undef box #undef clear #undef erase #undef move #undef refresh
C++ Syntax (Toggle Plain Text)
#define __cplusplus
#undef erase. Anyway, let me know if it works, or if I'm crazy. •
•
•
•
edit curses.h and look around about line 559, and 1017 or so. My copy of curses.h, however includes this:
Which in theory should fix your issue. I guess you could do something like this at the top of your code:C++ Syntax (Toggle Plain Text)
/* these names conflict with STL */ #undef box #undef clear #undef erase #undef move #undef refresh
should probably fix it, or even a simpleC++ Syntax (Toggle Plain Text)
#define __cplusplus#undef erase. Anyway, let me know if it works, or if I'm crazy.
thx again!
I am living in a mere program...
![]() |
Similar Threads
- Simple problem... please help! (Python)
- Ten Thousand Animations, Curses! (C#)
- incorrect ASCII values + curses (C++)
- ruby curses (Ruby)
- non blocking getchar.. big problem :( (C)
- Wireless or Wired? The Apartment Network Admin Blues (Networking Hardware Configuration)
- The Gregorian Calendar (C++)
- reading key combinations (C++)
Other Threads in the C++ Forum
- Previous Thread: Help with Binary I/O
- Next Thread: C++ Factorization
| Thread Tools | Search this Thread |
api application array arrays based beginner binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib library linkedlist linker list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg simple sorting string strings studio temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






