__mb_cur_max unresolved

Paul Lai plai@Lynx.COM
Wed Feb 16 16:48:00 GMT 2000


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



More information about the Cygwin mailing list