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
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Odin: dev-2024-12-nightly:cf53404
OS: Windows 10 Enterprise N (version: 20H2), build 19042.1466
CPU: Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
RAM: 65470 MiB
Backend: LLVM 18.1.8
Expected Behavior
Compiling a empty dll without main and crt should just work.
Current Behavior
Compiling an empty file with -file -no-crt -no-entry-point -build-mode:dll produces
LINK : error LNK2001: unresolved external symbol _DllMainCRTStartup
and fails to produce the dll.
Failure Information (for bugs)
Steps to Reproduce
create an empty filetest.odin
compile it with odin build test.odin -file -no-crt -no-entry-point -build-mode:dll
liker error
Workaround
For Microsoft cl you can add -extra-linker-flags:/NOENTRY (which i expected to already be set according to the odin flags, but i appears not to be, which solved the issue.
The text was updated successfully, but these errors were encountered:
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Odin: dev-2024-12-nightly:cf53404
OS: Windows 10 Enterprise N (version: 20H2), build 19042.1466
CPU: Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
RAM: 65470 MiB
Backend: LLVM 18.1.8
Expected Behavior
Compiling a empty dll without main and crt should just work.
Current Behavior
Compiling an empty file with
-file -no-crt -no-entry-point -build-mode:dll
producesand fails to produce the dll.
Failure Information (for bugs)
Steps to Reproduce
test.odin
odin build test.odin -file -no-crt -no-entry-point -build-mode:dll
Workaround
For Microsoft cl you can add
-extra-linker-flags:/NOENTRY
(which i expected to already be set according to the odin flags, but i appears not to be, which solved the issue.The text was updated successfully, but these errors were encountered: