Date: Tue, 23 Apr 1996 11:35:09 +0200 (IST) From: Eli Zaretskii To: naderr AT topaz DOT cqu DOT edu DOT au Cc: djgpp AT delorie DOT com Subject: Re: PDCURSES in a C++ program can it be done with djgpp? In-Reply-To: <199604230851.SAA07134@linuxbox.nse.com.au> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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)?