undefined reference to WinMain@16 (codeblocks)

后端 未结 7 1719
天命终不由人
天命终不由人 2020-12-30 08:18

When I compile my secrypt.cpp program, my compiler shows the error \"undefined reference to WinMain@16\". my code is as follows

secrypt.h :



        
7条回答
  •  长发绾君心
    2020-12-30 08:52

    You should create a new project in Code::Blocks, and make sure it's 'Console Application'.

    Add your .cpp files into the project so they are all compiled and linked together.

提交回复
热议问题