Using -L/SUBSYSTEM:windows user32.lib
Error:
lld-link: error: undefined symbol: _WinMain@16
referenced by
msvcrt120.lib(msvcrt_stub2.obj):(_WinMainCRTStartup)
Error: linker exited with status 1
On Thursday, 19 May 2022 at 19:29:25 UTC, Marcone wrote:
Using -L/SUBSYSTEM:windows user32.lib
you using a main() function right?
Please note when compiling on Win64, you need to explicitly list
-Lgdi32.lib -Luser32.lib on the build command. If you want the
Windows subsystem too, use -L/subs
On Thursday, 19 May 2022 at 19:35:20 UTC, Adam D Ruppe wrote:
On Thursday, 19 May 2022 at 19:29:25 UTC, Marcone wrote:
Using -L/SUBSYSTEM:windows user32.lib
you using a main() function right?
Please note when compiling on Win64, you need to explicitly
list -Lgdi32.lib -Luser32.lib on the bui
On Thursday, 19 May 2022 at 20:20:49 UTC, Marcone wrote:
I am using a main() function.
I am compiling on Windows x86 32 bits.
I am using DMD 2.100.0
This error is only in version 2.100.0 of DMD.
Are you using the `-L/entry:mainCRTStartup` or the
`L/entry:wmainCRTStartup` ?
On Thursday, 19 May 2022 at 20:33:34 UTC, Adam D Ruppe wrote:
On Thursday, 19 May 2022 at 20:20:49 UTC, Marcone wrote:
I am using a main() function.
I am compiling on Windows x86 32 bits.
I am using DMD 2.100.0
This error is only in version 2.100.0 of DMD.
Are you using the `-L/entry:mainCRTSt
On Thursday, 19 May 2022 at 21:41:50 UTC, Marcone wrote:
Are you using the `-L/entry:mainCRTStartup` or the
`L/entry:wmainCRTStartup` ?
-L/entry:mainCRTStartup
try the w one too. both doing the same result?
On Thursday, 19 May 2022 at 22:13:06 UTC, Adam Ruppe wrote:
On Thursday, 19 May 2022 at 21:41:50 UTC, Marcone wrote:
Are you using the `-L/entry:mainCRTStartup` or the
`L/entry:wmainCRTStartup` ?
-L/entry:mainCRTStartup
try the w one too. both doing the same result?
Both is doing the same
On Thursday, 19 May 2022 at 20:20:49 UTC, Marcone wrote:
I am using a main() function.
I am compiling on Windows x86 32 bits.
I am using DMD 2.100.0
This error is only in version 2.100.0 of DMD.
Did you try 2.099 too? Because the default build mode for 32bit
was changed to MS-COFF and it smel
On Friday, 20 May 2022 at 13:16:00 UTC, frame wrote:
On Thursday, 19 May 2022 at 20:20:49 UTC, Marcone wrote:
I am using a main() function.
I am compiling on Windows x86 32 bits.
I am using DMD 2.100.0
This error is only in version 2.100.0 of DMD.
Did you try 2.099 too? Because the default bu
On Friday, 20 May 2022 at 13:16:00 UTC, frame wrote:
On Thursday, 19 May 2022 at 20:20:49 UTC, Marcone wrote:
I am using a main() function.
I am compiling on Windows x86 32 bits.
I am using DMD 2.100.0
This error is only in version 2.100.0 of DMD.
Did you try 2.099 too? Because the default bu
On Thursday, 26 May 2022 at 16:56:49 UTC, Marcone wrote:
On Friday, 20 May 2022 at 13:16:00 UTC, frame wrote:
On Thursday, 19 May 2022 at 20:20:49 UTC, Marcone wrote:
I tried compiling now on x64 without console using
-L/SUBSYSTEM:windows user32.lib -L/entry:mainCRTStartup -m64
and it doesn'
11 matches
Mail list logo