nukeykt / Nuked-SC55

Roland SC-55 series emulation
Other
285 stars 33 forks source link

Fix windows builds failing to link #69

Closed nikitalita closed 2 months ago

nikitalita commented 2 months ago

If WIN32_CONSOLE is not defined, the exe will fail to link:

[build] MSVCRT.lib(exe_main.obj) : error LNK2019: unresolved external symbol main referenced in function "int __cdecl __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@YAHXZ) [F:\workspace\Nuked-SC55\build\nuked-sc55.vcxproj]

Defining WIN32_CONSOLE in the CFLAGS fixes the issue

fixes #16

Kappa971 commented 2 months ago

This should finally close this issue: https://github.com/nukeykt/Nuked-SC55/issues/16

nikitalita commented 2 months ago

ok, done