delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/02/16/19:41:45

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Wed, 16 Feb 2000 16:47:56 -0800
From: plai AT Lynx DOT COM (Paul Lai)
Message-Id: <200002170047.QAA23292@aristocat.Lynx.COM>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: __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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019