T O P
Rickenbecker

I think you might have done this already but you do have Mingw installed?


RandomUniqueDude

Yup, and I've verified it using 'gcc --version' in CMD. I followed the video step by step I can't seem to point out the problem


Paul_Pedant

Windows GUI applications get called at the entry point WinMain. Windows console applications get called at the entry point main(). You just need to tweak the project setup. Also, it seems likely that [email protected] is a 16-bit mode -- you might want to check what memory model the project has configured. https://stackoverflow.com/questions/13871617/winmain-and-main-in-c-extended


RandomUniqueDude

I'm sorry I'm new to this. Everything in stackoverflow went through my head. The inference I've drawn is that I'll have to use that winmain instead of main? Also, how's VSC configuring the project differently than how I intend it to ( keeping in mind I've been following YouTube tutorials step by step carefully going through every step and verifying)?


Paul_Pedant

That stackoverflow beats me too, and I don't use VSC or Windows now. I have just seen this problem come past several times. When you create a new project in VS, there should be a menu or dropdown called "Terminal". Setting this makes your project into a "Console Application". The key words here are "Application Type". It then will not include any Windows GUI libraries, and it will just behave like a normal Linux-style terminal application, and call main() to start. The default project is to use a GUI with widgets and panels and all that visual stuff. To start that code framework, the system sets up to call WinMain() to do all the hidden stuff. Googling Console Application, or WinMain, may help. This is ten minutes, may be helpful (or may be not quite up to date): Visual Basic Tutorial 2 - Project Properties [https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwiCqNypga31AhWholwKHVUSBYkQwqsBegQIDhAB&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DR3XxUdPcAGY&usg=AOvVaw3LG6mzq6DHhlbWP5MY5wbL](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwiCqNypga31AhWholwKHVUSBYkQwqsBegQIDhAB&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DR3XxUdPcAGY&usg=AOvVaw3LG6mzq6DHhlbWP5MY5wbL)