0

The message that is being displayed

I have installed mingw and vs code editor ,but when i try to compile its showing a message of this kind ,please help me how to resolve this ,I have been trying from many days ,but I couldn't understand the problem

  • What does `g++ --version` command show in windows cmd ? – Mukul Kumar Jan 29 '21 at 06:54
  • 1
    If you put that error message into your favorite search engine, what information can you get from that? Searching for e.g. `mingw undefined reference to winmain` should get you just the information you need. – Some programmer dude Jan 29 '21 at 07:01
  • For future questions please post errors and code as text not screenshots – Alan Birtles Jan 29 '21 at 07:03
  • @Someprogrammerdude This error normally means "no main function", which doesn't seem to be the case here? – HolyBlackCat Jan 29 '21 at 07:06
  • OP, make sure you only have a single version of MinGW installed, to avoid any possible conflicts. Also, GCC 6.3 that you currently have is *old*. Consider using a different MinGW distribution that provides an up-to-date version, like https://www.msys2.org/ or http://winlibs.com/ – HolyBlackCat Jan 29 '21 at 07:08
  • Yes, the dupe is informatiive but doesn't seem to apply to the OP – john Jan 29 '21 at 07:08
  • To the OP: since you have a `main` function defined you need to look beyond the answers, links and comments saying that it's usually a missing `main` function. The linked duplicate do have a couple of comments in replies to some answers that could provide a possible solution. And of course searching the broader Internet (as mentioned) should give you a lot more. Sure it might be tedious, but welcome to the normal everyday programmers world, that's what we do. :) – Some programmer dude Jan 29 '21 at 07:13

0 Answers0