undefined reference to WinMain@16 (codeblocks)

后端 未结 7 1716
天命终不由人
天命终不由人 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:53

    I was interested in setting up graphics for Code Blocks when I ran into a this error: (took me 2 hrs to solve it)

    I guess you need to have a bit of luck with this. In my case i just changed the order of contents in Settings menu->Compiler and Debugger->Global compiler settings->Linker settings->Other Linker Options: The working sequence is: -lmingw32 -lSDL -lSDLmain

提交回复
热议问题