Skip to content

Commit

Permalink
Try to build with console subsystem instead of windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Nov 29, 2020
1 parent e415eac commit 463f374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_msvc.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ set CXXFLAGS=/std:c++17 /O2 /FC /W4 /WX /nologo
set INCLUDES=/I SDL2\include
set LIBS=SDL2\lib\x64\SDL2.lib SDL2\lib\x64\SDL2main.lib Shell32.lib

cl.exe %CXXFLAGS% /Fepng2c png2c.c /link Shell32.lib -SUBSYSTEM:windows
cl.exe %CXXFLAGS% /Fepng2c png2c.c /link Shell32.lib -SUBSYSTEM:console
png2c.exe digits.png > digits.h
cl.exe %CXXFLAGS% %INCLUDES% /Fesowon main.c /link %LIBS% -SUBSYSTEM:windows

0 comments on commit 463f374

Please sign in to comment.