You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When cross-compiling from a Linux host to a Windows target the library name is following the host naming convention. For example, a library project foo when compiled will generate a library named libfoo.a. This is wrong, because if you use that project as a dependency then linking will fail as the linker will be using the library that has a wrong extension. The error in this case is:
Error: unrecognized file extension a
How to reproduce?
Make sure you have the VC and Platform libraries from a Visual Studio setup, then use
System information
Bug Description
When cross-compiling from a Linux host to a Windows target the library name is following the host naming convention. For example, a library project
foo
when compiled will generate a library namedlibfoo.a
. This is wrong, because if you use that project as a dependency then linking will fail as the linker will be using the library that has a wrong extension. The error in this case is:How to reproduce?
Make sure you have the VC and Platform libraries from a Visual Studio setup, then use
Expected Behavior
A way to specify the target platform, similar to
--arch
, an option--platform
, to force dub to use a specific platform. For example:The text was updated successfully, but these errors were encountered: