Mail Archives: djgpp/1995/10/09/01:52:22
I'm using DJGPP 1.12M4, and just downloaded PDCurses 2.2. It appears to be
successfully installed - all the demos ran. For simplicity, I copied the
libraries and .h files to the existing directories in my DJGPP installation.
I have successfully written small C programs which print text to the screen
and terminate (so I'm using initscr, endwin, refresh, and mvaddstr). So far
so good. However, when I convert the existing C program to a C++ program
by changing the name (i.e., .c to .cc), it get compile errors. Specifically,
I get a warning (line 426 of curses.h) that an abstract declarator is used as
a declaration, and a number of undefined references (including initscr, for example.
Most of the others look like they might be called as a result of the calls
I've made). Since I'm just starting C++, the first warning makes little
sense to me (I'm not that familiar with C either, but I'm getting there).
So, the question is, why does one incarnation of essentially identical code
compile and run successfully when another doesn't? If it's something as silly
as keeping the libraries in their original locations, I'll take my lumps and
move on. Somehow, it doesn't seem that simple to me though.
Thanks in advance.
--
---------------------------------------------------------------------
Michael Wesolowski (mewesolo AT freenet DOT calgary DOT ab DOT ca)
- Raw text -