Mail Archives: djgpp/1996/04/23/04:46:58
On Tue, 23 Apr 1996, root wrote:
> I have two programs using curses, one in straight C,
> the other mixture of C & C++.
>
> While on other platforms ( Linux with g++-2.7.1.4 ) and with a different
> DOS compiler ( BCC/TLINK 3.1) I can compile the C++ one,
> with DJGPP && gxx I can not. Weird I reckon :)
>
> And have tried to compile it as tcurs.cc with gxx and it fails.
Fails how? Care to post the error messages that you see?
> Hmm, my DGJPP.ENV has the necessary 'include' and 'lib' paths to
> handle it ( I believe ) ... here it is ....
>
[snip]
>
> Is the above correct?
Seems about right. But to be absolutely sure that gcc uses the correct
search paths, please add -v to the command line and look at the info it
prints: you should see the curses include directory among the directories
it searches.
Did you check if the include files are C++-compatible (i.e., do they
include the ``extern "C"'' declaration around the function prototypes)?
- Raw text -