From mrami@mramirez.sy.yale.edu  Mon Mar 13 18:00:40 1995
Received: from mramirez.sy.yale.edu (mramirez.sy.yale.edu [130.132.57.207]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id SAA05007 for <FreeBSD-gnats-submit@freebsd.org>; Mon, 13 Mar 1995 18:00:37 -0800
Received: (from mrami@localhost) by mramirez.sy.yale.edu (8.6.9/8.6.9) id VAA00814; Mon, 13 Mar 1995 21:00:33 -0500
Message-Id: <199503140200.VAA00814@mramirez.sy.yale.edu>
Date: Mon, 13 Mar 1995 21:00:33 -0500
From: Marc Ramirez <mrami@mramirez.sy.yale.edu>
Reply-To: mrami@mramirez.sy.yale.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject:
X-Send-Pr-Version: 3.2

>Number:         242
>Category:       bin
>Synopsis:       curses header files do not have correct linkages for C++
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 13 18:10:00 1995
>Closed-Date:    Sat Apr 1 05:34:14 PST 1995
>Last-Modified:
>Originator:     Marc Ramirez
>Release:        FreeBSD 2.0-RELEASE i386
>Organization:
You couldn't get a clue during the clue mating season in a field full of
horny clues if you smeared your body with clue musk and did the clue
mating dance. 
					- Edward Flaherty

>Environment:

fresh install of 2.0-Release + XFree86-3.0

>Description:

public prototypes do not include 'extern "C" { ... }' when compiled
with C++ compiler

>How-To-Repeat:

mrami[~]$ cat >test.cc
#include <curses.h>

void main(void) {
        initscr();
        endwin();
}
mrami[~]$ c++ test.cc
/var/tmp/cc0007311.o: Undefined symbol `_initscr__Fv' referenced from text segment
/var/tmp/cc0007311.o: Undefined symbol `_endwin__Fv' referenced from text segment
mrami[~]$ 

>Fix:

I'm not savvy enough to know the "correct" solution; for now, I've
just put #ifdef _CPLUSPLUS's

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ache 
State-Changed-When: Sat Apr 1 05:34:14 PST 1995 
State-Changed-Why:  
There is separate C++ interface for curses 
>Unformatted:



curses header files do not have correct linkages for C++
