From owner-freebsd-bugs Mon Mar 13 18:10:02 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id SAA05250 for bugs-outgoing; Mon, 13 Mar 1995 18:10:02 -0800 Received: (from gnats@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id SAA05243; Mon, 13 Mar 1995 18:10:01 -0800 Date: Mon, 13 Mar 1995 18:10:01 -0800 Message-Id: <199503140210.SAA05243@freefall.cdrom.com> From: Marc Ramirez Reply-To: Marc Ramirez To: freebsd-bugs Subject: bin/242: In-Reply-To: Your message of Mon, 13 Mar 1995 21:00:33 -0500 <199503140200.VAA00814@mramirez.sy.yale.edu> Sender: bugs-owner@FreeBSD.org Precedence: bulk >Number: 242 >Category: bin >Synopsis: >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs (FreeBSD bugs mailing list) >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 13 18:10:00 1995 >Originator: Marc Ramirez >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 >Release: FreeBSD 2.0-RELEASE i386 >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 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 >Audit-Trail: >Unformatted: curses header files do not have correct linkages for C++