epezent / implot

Immediate Mode Plotting
MIT License
4.5k stars 495 forks source link

Implot demo error: MSVCRTD.lib(exe_main.obj) : error LNK2019: unresolved external symbol main referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ) 1>C:\Users\PvPSwagHD\source\repos\imgui\x64\Debug\imgui.exe #541

Closed pvpswaghd closed 7 months ago

pvpswaghd commented 7 months ago

Hello, recently I came to this library, and then when I was trying to configure and run the demo on my Visual Studio 2019 environment, it has this error:

1>MSVCRTD.lib(exe_main.obj) : error LNK2019: unresolved external symbol main referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ) 1>C:\Users\PvPSwagHD\source\repos\imgui\x64\Debug\imgui.exe : fatal error LNK1120: 1 unresolved externals

However, when I add int main() at the end, it solves the problem. Is there a workaround for this? Thanks!