NetBSD Problem Report #401

From gnats  Mon Aug  8 11:53:17 1994
Received: from uwm.edu (uwm.edu [129.89.6.2]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with SMTP id LAA00559 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Mon, 8 Aug 1994 11:53:16 -0700
Message-Id: <199408081854.NAA03053@enigma.cs.uwm.edu>
Date: Mon, 8 Aug 1994 13:54:06 -0500
From: James Jegers <jimj@enigma.cs.uwm.edu>
Reply-To: jimj@enigma.cs.uwm.edu
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: can't compile curses program with c++
X-Send-Pr-Version: 3.2

>Number:         401
>Category:       lib
>Synopsis:       can't compile curses program with c++
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 08 12:05:05 +0000 1994
>Closed-Date:    Thu Sep 08 20:29:37 +0000 1994
>Last-Modified:  
>Originator:     James Jegers
>Release:        
>Organization:
"	"
>Environment:

System: NetBSD enigma.cs.uwm.edu 1.0 beta ENIGMA#1 i386


>Description:

      The header file does not have __BEGIN_DECLS and __END_DECLS around
      the function prototypes.  You therefor cannot compile a program
      with the c++ compiler that uses curses.
>How-To-Repeat:

	<how to correct or work around the problem, if known (multiple lines)>

%m %/-> more i.c
#include <curses.h>

main()
{
   initscr();
}


K%m %/-> c++ i.c 
...cc0002861.o: Undefined symbol `_initscr__Fv' referenced from text segment
%m %/-> c++ i.c -lcurses -ltermcap
...cc0003351.o: Undefined symbol `_initscr__Fv' referenced from text segment
%m %/-> cc i.c -lcurses -ltermcap
%m %/->

>Fix:
  FIX: Put the __*_DECLS around the prototypes in curses.h

>Release-Note:
>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: jtc
State-Changed-When: Thu Sep  8 20:29:37 1994
State-Changed-Why:
curses.h was missing __BEGIN_DECLS & __END_DECLS around public function
declarations.  Fix has been committed and sent to bostic.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.