| Summary: | Can't link code using catopen | ||
|---|---|---|---|
| Product: | Base System | Reporter: | sorban <sorban> |
| Component: | misc | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->closed Can't reproduce the problem on 4.2-BETA. So the bug seems to have gone... |
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 ); }