As you can see along with the main window, there is an empty cmd window. Is there any way to disable that ?
Thanks for the help . I am very new to imgui.
That is not an artifact of imgui but how the executable was built. With Visual Studio, it is most likely because the subsystem is set to CONSOLE
I tried changing the Subsystem to all other values possible. All I am getting is lot of linker errors. I tried changing the Architecture(default Win32) to x64 which also spit out a lot of errors. Only setting the subsystem to CONSOLE and architecture to Win32 works. Does this also mean if I want to use imgui with my CGAL build which is x64, that won't be possible ?
Thanks for the reply thou.
OK I found out in windows adding this above the main function will fix the problem.
#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup")
And it did, but one question remains, how to build this for x64
This question has a absolutely nothing to do with the dear imgui library. Please ask on eg: stackoverflow.
@ocornut Building imgui in x64 produces linker errors . Does that have anything to do with dear imgui ?
Could you provide the linker errors you get, and what exactly did you try to build with what compiler?
Oops never mind , changing the subsystem also fixed architecture trouble I think. It compiles without errors . I guess restarting Visual Studio fixed it.
Most helpful comment
OK I found out in windows adding this above the main function will fix the problem.
And it did, but one question remains, how to build this for x64