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

前端 未结 11 648
挽巷
挽巷 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 23:02

    Try this: Settings->Compiler, click the tab Build options, select the checkbox

    Explicitly add currently compiling file's directory to compiler search dirs

    i did this and i works perfect now

提交回复
热议问题