Skip to content

Can't set SubSystem to WindowedApp #86

@Patrick-W-McMahon

Description

@Patrick-W-McMahon

If you go /WalnutApp/premake5.lua and change the following:
kind "ConsoleApp" to kind "WindowedApp"
then run premake it will build the project but when running the project you will get the following error.

Severity Code Description Project File Line Suppression State Details
Error LNK2019 unresolved external symbol WinMain referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@yahxz) WalnutApp .....\Walnut\WalnutApp\MSVCRTD.lib(exe_winmain.obj) 1

the only way the project works is in Console but i would like to build it so it doesn't show the console at startup

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions