From owner-freebsd-bugs Fri Jul 9 8:10: 4 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 4377B14DF4 for ; Fri, 9 Jul 1999 08:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id IAA67969; Fri, 9 Jul 1999 08:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 06EA014D28; Fri, 9 Jul 1999 08:08:57 -0700 (PDT) Message-Id: <19990709150857.06EA014D28@hub.freebsd.org> Date: Fri, 9 Jul 1999 08:08:57 -0700 (PDT) From: sorban@iss.net To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: misc/12577: Can't link code using catopen Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 12577 >Category: misc >Synopsis: Can't link code using catopen >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 9 08:10:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Scott Orban >Release: 3.1 & 2.2.6 >Organization: ISS >Environment: FreeBSD test 3.1-RELEASE FreeBSD 3.1-RELEASE #0: Wed Jul 7 14:47:33 EDT 1999 >Description: Get the following error linking the following code snippet using g++ test.cpp. Since I know catopen is defined in the standard c library, I also tried forcing it by using g++ test.cpp -lc ERROR RECVD: /var/tmp/ccGSl4qm.o: In function `main': /var/tmp/ccGSl4qm.o(.text+0xe): undefined reference to `catopen(char const *, int)' /var/tmp/ccGSl4qm.o(.text+0x1f): undefined reference to `catclose(void *)' collect2: ld returned 1 exit status CODE SNIPPET: #include void main() { nl_catd s_nlCatd = catopen("test", NL_CAT_LOCALE); catclose( s_nlCatd ); } >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message