www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/23/04:46:58

Date: Tue, 23 Apr 1996 11:35:09 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
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: <Pine.SUN.3.91.960423113051.19388C-100000@is>
Mime-Version: 1.0

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 -


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