I was working on a very simple program that only uses the cmd to do stuff.
Then all of a sudden it stopped working.
It compiles and runs. But it instantly return 0; in main, without even running the code inside main!
I realised not even this line of code will run anymore:
I think my friend made an extra setting to allow to work with windows and buttons, but Im not sure what he did.
Im using codeblocks so maybe that is the error?
Uninstalled and reinstalled the whole ide. Copy pasted the text in the files so that no config file would enter my new project.
Still, same problem remains. God I hate when shit like this happens to newbies.
It was the -mwindows that bugged me.
It was in settings>compiler>linker
something was written -mwindows
and that made the program run wrong main function I think..