On 2026/11/05 01:10, Eric Botcazou wrote:
>> I understand that gnatmake and some other Ada tools will automatically do
>> this, but I think it might be better to still provide a import lib, so that
>> you can link to shared libgnat just like other libraries, e.g. libgcc. For
>> example, what if you have a project with mixed Ada/C/C++, and you want to
>> use the C-style way to build/link it?
> 
> But people have been doing this for decades...
> 

Are you sure? There's lots of matches if you search for -lgnat, e.g. on GitHub 
[1]
Among these, many of them just calls gcc, not gnatmake or any Ada specific 
tools.

And is there any downside of providing an import library for it on Windows? 
People
can still directly link to the DLL if they want. It just allows another usage, 
and
it shouldn't break anything. The additional space is ignorable.

[1]: https://github.com/search?q=-lgnat&type=code

Reply via email to