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

前端 未结 11 649
挽巷
挽巷 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条回答
  •  無奈伤痛
    2020-12-09 22:50

    This problem appeared to me because the "main.cpp" was not included in the project. If you see that error once again, just make sure you have all the files included in your project.

提交回复
热议问题