Mail Archives: djgpp/2001/08/02/02:00:04
It looks like the ncurses library in DJGPP is broken.
I have a simple program like this...
#include <curses.h>
int main ()
{
return 0;
}
When I try to compile it using gcc as shown below, it works fine..
gcc -c test.c
But unfortunately, the program I'm writing is in C++. When I try compiling
the C++ version, I get an error like this..
gpp -c test.cc
In file included from test.cc:1:
d:/djgpp/include/curses.h:426: declaration does not declare anything
The line 426 in curses.h is simply this..
typedef unsigned char bool;
which looks fine. Perhaps something went wrong in the #ifdefs in curses.h...
Worse still, my program actually uses STL. When I include a header like
<vector> along with curses.h, it gives me unimaginable errors ;-).
Has someone come across this and is there some kind of fix. My program
compiles under GNU/Linux with absolutely no problems.
Any suggestions are greatly appreciated.
Thanks,
Prashant
--
Prashant TR <tr AT midpec DOT com> Web: http://www.midpec.com/
"Those who do not understand Unix are condemned to reinvent it, poorly."
-- Henry Spencer
This message is confidential and may also be legally privileged. If you are not the intended recipient, please notify us immediately. You should not copy it or use it for any purpose, not disclose its contents to any other person. The views and opinions expressed in this e-mail message are the author's own and may not reflect the views and opinions of Wilco International
- Raw text -