[CMake] How to find dll's on Cygwin? (fwd)

Marco Atzeri marco.atzeri at gmail.com
Sat Oct 28 10:44:02 EDT 2017


On 28/10/2017 05:38, Alan W. Irwin wrote:
> On 2017-10-27 22:31+0200 Marco Atzeri wrote:
> 
>> On 27/10/2017 09:32, Alan W. Irwin wrote:
> 
> Our understanding is the Cygwin naming convention for the various
> kinds of libraries would be (in the gnat library case)
> 
> dll               cyggnat-6.dll
> import library    libgnat-6.dll.a
> static library    libgnat.a
> 

Hi Alan,

the understanding is correct, it should be
libgnat-6.dll.a or libgnat.dll.a
However as

  $ gnatlink -v -shared hello
GNATLINK 6.4.0
Copyright (C) 1995-2016, Free Software Foundation, Inc.
gcc -c -mtune=generic -march=x86-64 -gnatA -gnatWb -gnatiw -gnatws 
/tmp/ada/b~hello.adb
/usr/bin/gcc.exe b~hello.o ./hello.o -shared -o hello.exe -L./ 
-L/usr/lib/gcc/x86_64-pc-cygwin/6.4.0/adalib/ -lgnat-6 
-Wl,--stack=0x2000000 -shared-libgcc
/usr/lib/gcc/x86_64-pc-cygwin/6.4.0/../../../../x86_64-pc-cygwin/bin/ld: 
cannot find -lgnat-6
collect2: error: ld returned 1 exit status
gnatlink: error when calling /usr/bin/gcc.exe

I suspect the ada package is incomplete, so I raised
the attention of the package maintainer.

https://cygwin.com/ml/cygwin/2017-10/msg00358.html

Regards
Marco





More information about the CMake mailing list