gcc x86 - problem on library search order

JonY 10walls@gmail.com
Tue Apr 26 12:11:00 GMT 2016


On 4/26/2016 01:46, Marco Atzeri wrote:
> Visible on 32bit and not present on 64bit
> 
> $ cat uuid.c
> #include <uuid/uuid.h>
> 
> int main ()
> {
>     uuid_t out;
>     uuid_generate_random(out);
>     return 0;
> }
> 
> 
> $ gcc uuid.c -luuid
> /tmp/ccLlmFMf.o:uuid.c:(.text+0x16): undefined reference to
> `uuid_generate_random'
> collect2: error: ld returned 1 exit status
> 

Pretty sure I removed the patch that does that, not sure where it gets
in from. It isn't in the specs file either.

-Wl,-v does say it is from gcc.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20160426/15565d47/attachment.sig>


More information about the Cygwin mailing list