| | |
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 |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator getline givemetehcodez graph iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






