i didn’t opened an old project and i didn’t used one file in another project. i just wrote the same program again i wrote before (i’m learning ^^) …
yes, i’ve tried a complete rebuild… with the same result …
i red on another page that i only have to change the linker settings … instead of /subsystem: windows i should write /subsystem: console… the first time i did it everything went good…
but now …
i don’t know whats going on…
another page said if the fault appears even though i have changed the settings to /subsystem: console it could be that the compiler has a fault. if this happens i should write all commands into the main() function…
Your source code has a WinMain not a main function so it should be a windows application, (subsystem:windows) if you do have a main function you can use subsystem:console
So if you get an unresolved external for _main you have linked with subsystem:console (require a main function) or you have messed up the library dependencies so that the builtin _main is not available.
Which IDE/Compiler are you using ? This may help to understand if you probably choosed a console subsystem and you coded a WinMain inside. (i.e. Visual Studio console subsystem is called console application, and win32 application with the windows subsystem)