undefined reference to WinMain@16 (codeblocks)

后端 未结 7 1718
天命终不由人
天命终不由人 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 09:07

    I had the same error problem using Code Blocks rev 13.12. I may be wrong here since I am less than a beginner :)

    My problem was that I accidentally capitalized "M" in Main() instead of ALL lowercase = main() - once corrected, it worked!!!

    I noticed that you have "int main()" instead of "main()". Is this the problem, or is it supposed to be that way?

    Hope I could help...

    0 讨论(0)
提交回复
热议问题