delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/08/02/02:00:04

From: Prashant Ramachandra <rprash AT wilco-int DOT com>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Message-ID: <5BF60CD649EDD411A04600B0D049F53AFFA97A@hydmail02.hyd.wilco-int.com>
Subject: Curses in DJGPP
Date: Thu, 2 Aug 2001 11:05:54 +0530
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019