This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

__mb_cur_max unresolved


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]