i m unable to set up cpp in vs code

Viewed 40

this error is showing on my compiler.what should i do for it? Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

PS C:\Users\tripa> cd "c:\Users\tripa\AppData\Local\Programs\Microsoft VS Code\" ; if ($?) { g++ main.cpp -o main } ; if ($?) { .\main }
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../libmingw32.a(main.o):(.text.startup+0xa0): undefined reference to `WinMain@16'
collect2.exe: error: ld returned 1 exit status
PS C:\Users\tripa\AppData\Local\Programs\Microsoft VS Code>
0 Answers
Related