mingw can't create windows shared library #20445
Labels
Bug
This tag is applied to issues which reports bugs.
Build
V build error on any OS/CPU architecture.
Status: Confirmed
This bug has been confirmed to be valid by a contributor.
Describe the bug
When use mingw cross-compile windows shared library, it fail. Seems try to create a exe instead.
Reproduction Steps
library.v
v -shared . -os windows
Expected Behavior
should create a .dll file
Current Behavior
Possible Solution
Wrong cmd for creating shared libray?
Additional Information/Context
No response
V version
V full version: V 0.4.3 e30af86.10d738c
Environment details (OS name and version, etc.)
V full version: V 0.4.3 e30af86.10d738c
OS: linux, Ubuntu 22.04.3 LTS (WSL 2)
Processor: 16 cpus, 64bit, little endian, AMD Ryzen 7 7840H with Radeon 780M Graphics
getwd: /mnt/d/v/D2/test/dynamic_library_loader/modules/library
vexe: /home/lastgod/github/lang/v/v
vexe mtime: 2024-01-06 00:55:41
vroot: OK, value: /home/lastgod/github/lang/v
VMODULES: OK, value: /home/lastgod/.vmodules
VTMP: OK, value: /tmp/v_1001
Git version: git version 2.34.1
Git vroot status: weekly.2024.01.test2-19-g66d222cc-dirty (17 commit(s) behind V master)
.git/config present: true
CC version: cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
thirdparty/tcc status: thirdparty-linux-amd64 12f392c3-dirty
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: