Zer0Mem0ry / ScreenMelter

A simple program that uses an overlapping window to create a melting screen effect.
41 stars 33 forks source link

Compile issue #2

Closed WifiRouterYT closed 4 years ago

WifiRouterYT commented 4 years ago

Upon compiling, I get this: 1>------ Build started: Project: ScreenMelter, Configuration: Debug x64 ------ 1>main.cpp 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\Ivan\Desktop\ScreenMelter\x64\Debug\ScreenMelter.exe : fatal error LNK1120: 1 unresolved externals 1>Done building project "ScreenMelter.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I am new to coding, so I cannot resolve this issue on my own. Info: Visual Studio 2019 Professional (trial) Intel i3 8145U CPU @ 2.30 GHz max 20 GB RAM (19.8 GB usable) Windows 10 Home Touch support with 10 touch points PC: Lenovo IdeaPad S340-Touch

isira-adithya commented 4 years ago

I got that error too image I am using Visual Studio 2019

isira-adithya commented 4 years ago

I fixed It using image Propertice of the Project --> Linker --> System --> Subsystem = Windows It worked!

WifiRouterYT commented 4 years ago

Awesome! Thanks for the help!