Updated: libunistring 0.9.5-1
Marco Atzeri
marco.atzeri@gmail.com
Fri Apr 10 15:19:00 GMT 2015
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 <uniname.h>
> #include <stdio.h>
> 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
More information about the Cygwin
mailing list