This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
__mb_cur_max unresolved
- To: cygwin at sourceware dot cygnus dot com
- Subject: __mb_cur_max unresolved
- From: plai at Lynx dot COM (Paul Lai)
- Date: Wed, 16 Feb 2000 16:47:56 -0800
Greetings,
Can't find a reference to anyone asking this so here goes....
Given the source, t.c:
#include <stdlib.h>
main(){
if (MB_CUR_MAX > 0)
return MB_CUR_MAX ;
}
and the compile line:
gcc -o t t.c
results in the error:
.... undefined reference to `___mb_cur_max'
Inspecting libc.a (from the original b20.1 distribution), we find
locale.o containing the data element ___mb_cur_max.
So, get a copy from the archive.
ar x libc.a locale.o
Try linking it in w/ command:
gcc -o t t.c locale.o
links just fine.
What's up?
-Paul
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com