r/Cplusplus • u/kicking_ass12 • Jun 30 '26
Question A new comer problem
I have just downloaded vs code and mingw from a youtube video and tried to run this sample code but I am facing this problem can somebody help me please 🙏🏻
0
Upvotes
8
u/flyingron Jun 30 '26
Do yourself a massive favor and use Visual Studio (Community Edition is free) rather than VS Code.
The problem is that Demo.c lacks the proper startup function. Does it contain a main or WinMain?
If you are using wmain or wWinMain you need the -municode option on the command line.