C++ undefined reference to WinMain@16 (Code::Blocks)

前端 未结 11 675
挽巷
挽巷 2020-12-09 22:20

I\'m learning C++ with Code::Blocks, and everytime i try to create a new class, I get an error message saying:

undefined reference to `WinMain@16\'
         


        
11条回答
  •  猫巷女王i
    2020-12-09 22:49

    its very simple and worked for me ... all you have to do is selecting " open an existing project " that appears in the start tab once you open code blocks and then you choose (your project name ).cbp file ... the program will open your projects as well as the class name .h and .cpp files ... you build and run ... and voila your code will work just fine ..

提交回复
热议问题