Date: Mon, 13 Mar 1995 18:10:01 -0800 From: Marc Ramirez <mrami@mramirez.sy.yale.edu> To: freebsd-bugs Subject: bin/242: Message-ID: <199503140210.SAA05243@freefall.cdrom.com> In-Reply-To: Your message of Mon, 13 Mar 1995 21:00:33 -0500 <199503140200.VAA00814@mramirez.sy.yale.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
>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 <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 >Audit-Trail: >Unformatted: curses header files do not have correct linkages for C++
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503140210.SAA05243>