This is the mail archive of the
mailing list for the Cygwin project.
RE: Updated: libunistring 0.9.5-1
- From: "Nellis, Kenneth" <Kenneth dot Nellis at xerox dot com>
- To: The Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Fri, 10 Apr 2015 14:58:33 +0000
- Subject: RE: Updated: libunistring 0.9.5-1
- Authentication-results: sourceware.org; auth=none
- References: <55275D48 dot 9070009 at xs4all dot nl>
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.
int main (void)
char buffer[UNINAME_MAX] = "(undefined)";
ucs4_t uc = 0x20AC; /* euro symbol */
unicode_character_name (uc, buffer);
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
is usr/lib/libunistring.dll.a, the "dll" part of which seems odd to me.
Specifying -lunistring.dll produced the same error message.