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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=nkg5gE2Hw9alH/frELMDPIjnCp5v1FE9Gvt1RygVEYy ZAVlyKnm4t7Gel7pZ1OYlx92lceIzN0PuhaDk9mE/jEozNjJDsHiUMZUdVpX/5CE 6LKQ/gU6RHVNQ9TmZSMgzOJq5i3TPY0VY69qOyEEDtMTgWd3waFpcO+92EqVQ5Bs = 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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=l327qTdJEaC6BM8ykve2my+3GR4=; b=bJ29s1vBekJzqy6J5 hUXQDMua9/yCILx2YvxNt96hWADSNP+nvzsL1/uH6Pj9SQLO1SDpa9/PDawzmHSE 3r6ZpKLvbMWvIsSFM7H/yNig0KPQhx5R//OYQczIBBga8x2U1DInZN8dRAEK2Fyu 6YlsRJNCTqoO/JBqbns5e7F3zI= 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=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f41.google.com X-Received: by 10.194.87.65 with SMTP id v1mr4035641wjz.2.1428679174547; Fri, 10 Apr 2015 08:19:34 -0700 (PDT) Message-ID: <5527EA01.2020306@gmail.com> Date: Fri, 10 Apr 2015 17:19:29 +0200 From: Marco Atzeri User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Updated: libunistring 0.9.5-1 References: <55275D48 DOT 9070009 AT xs4all DOT nl> <0D835E9B9CD07F40A48423F80D3B5A702E8BF21E AT USA7109MB022 DOT na DOT xerox DOT net> In-Reply-To: <0D835E9B9CD07F40A48423F80D3B5A702E8BF21E@USA7109MB022.na.xerox.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 4/10/2015 4:58 PM, Nellis, Kenneth wrote: > I thought I'd play with libunistring so for the first > time I downloaded the following packages: > > > 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 > $ > try in this way: $ gcc unicode_character_name.c -lunistring order matters on Windows > --Ken Nellis Regards MArco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple