Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  9 Jul 1999 08:08:57 -0700 (PDT)
From:      sorban@iss.net
To:        freebsd-gnats-submit@freebsd.org
Subject:   misc/12577: Can't link code using catopen
Message-ID:  <19990709150857.06EA014D28@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <nl_types.h>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990709150857.06EA014D28>