This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Updated: libunistring 0.9.5-1

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 <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

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.


--Ken Nellis

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]