Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Mar 1996 10:19:17 -0700
From:      Sean Kelly <kelly@fsl.noaa.gov>
To:        dugger@swn.com
Cc:        questions@freebsd.org
Subject:   Re: g++ question
Message-ID:  <9603091719.AA26656@emu.fsl.noaa.gov>
In-Reply-To: <ML-2.0.-1.7349.dugger@freedom.swn.com> (message from Don Dugger on Wed, 31 Dec 1969 23:59:59 %2B0000 ( ))

next in thread | previous in thread | raw e-mail | index | archive | help
The curses header file on your Linux system probably has

	#ifdef __cplusplus
	extern "C" {
	#endif
	... declarations
	#ifdef __cplusplus
	}
	#endif

in it, whereas FreeBSD's does not.  In your code, you can try

	extern "C" {
	#include <curses.h>
	}

or uses <ncurses.h> which has the extern "C" stuff.

-- 
Sean Kelly                          
NOAA Forecast Systems Laboratory    kelly@fsl.noaa.gov
Boulder Colorado USA                http://www-sdd.fsl.noaa.gov/~kelly/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9603091719.AA26656>