ldc2 linux -> windows cross-compile linker error

H. S. Teoh hsteoh at qfbox.info
Fri Jul 25 17:30:41 UTC 2025


On Sat, Jul 26, 2025 at 05:19:52AM +1200, Richard (Rikki) Andrew Cattermole via Digitalmars-d wrote:
> Did you try renaming the import library to match the case sensitivity?

Huh, I added a symlink in lib/mingw: Bcrypt.lib -> bcrypt.lib, and now
everything works.  Thanks!

Strange thing, though: I tracked it down to a `pragma(lib, "Bcrypt");`
in one of my modules. However, changing this line to use lowercase
"bcrypt" does not make a difference.  Running ldc2 -v indicates that for
some reason it gets capitalized to Bcrypt.lib anyway by the compiler.
But why is this?  I checked other pragma(lib,...) declarations that had
lowercase library names, and they don't get auto-capitalized. Why is
bcrypt different?


T

-- 
The most powerful one-line C program: #include "/dev/tty" -- IOCCC


More information about the Digitalmars-d mailing list