X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; q=dns; s=default; b=KmAJ1xBW07XzScxm3x2fIRf3hH/VL ltBy4z3Y3MMhGZlbbhapJsAFtYWg0JGMhQTBbnpGFNvh5eZjSa14C+RGW6KhzFbp jbK3pSunofospfLC3B6HCuelGhWd+3mxxcCBVif7gPt5rN0l6y97KpWR22BvgGyl khlLZAnk+rg2lk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; s=default; bh=wbTUPJJVDpA4znfuY7DvDsBuvWQ=; b=YZR Kk8KXAOcB2bYKXmimTcRYNZWzUtgC7nEXumypYr/U9oSYIKWD8t53zmQfayrmxda zfRYrXOpUlH+NVPRTMZj9C2PsiLiEYBAIGxGf/mZ+jlTZPSUQ3dfTCd5XbDcYVc7 ZukVpHTOko75c5S1K4z6e9yKIhbB8IStml1CTRo0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,MIME_BASE64_BLANKS autolearn=no version=3.3.2 X-HELO: USA7109MR009.ACS-INC.COM From: "Nellis, Kenneth" To: The Cygwin Mailing List Subject: RE: Updated: libunistring 0.9.5-1 Date: Fri, 10 Apr 2015 14:58:33 +0000 Message-ID: <0D835E9B9CD07F40A48423F80D3B5A702E8BF21E@USA7109MB022.na.xerox.net> References: <55275D48 DOT 9070009 AT xs4all DOT nl> In-Reply-To: <55275D48.9070009@xs4all.nl> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id t3AEwq0M011638 I thought I'd play with libunistring so for the first time I downloaded the following packages: $ cygcheck -c libunistring-devel libunistring-doc libunistring2 Cygwin Package Information Package Version Status libunistring-devel 0.9.5-1 OK libunistring-doc 0.9.5-1 OK libunistring2 0.9.5-1 OK $ Then wrote what I thought would be a trivial first program. #include #include int main (void) { char buffer[UNINAME_MAX] = "(undefined)"; ucs4_t uc = 0x20AC; /* euro symbol */ unicode_character_name (uc, buffer); puts (buffer); return 0; } It compiles fine, but I don't know how to get it to link. $ gcc -lunistring unicode_character_name.c /tmp/ccaJ19ki.o:unicode_character_name.c:(.text+0x57): undefined reference to `unicode_character_name' /tmp/ccaJ19ki.o:unicode_character_name.c:(.text+0x57): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `unicode_character_name' collect2: error: ld returned 1 exit status $ The only relevant library file that I found in the installation (https://cygwin.com/packages/x86_64/libunistring-devel/libunistring-devel-0.9.5-1) is usr/lib/libunistring.dll.a, the "dll" part of which seems odd to me. Specifying -lunistring.dll produced the same error message. Ideas? --Ken Nellis