+ 1

Code::Blocks SDL2 WinMain@16 problem

Im learning c++ and wanted to get started with sdl but everytime I get "undefined reference to WinMain@16" error. I tried everything, read every tutorial, included "include" and "lib" directories, typed -lmingw32 -lSDL2main -lSDL2, in main i have (int argc, char* argv[]). I dont know what i did wrong or havent included but i really want to get this working. Please help.

1st Apr 2018, 9:56 AM
Venom50
Venom50 - avatar
2 Respostas
+ 1
And you can use other applications like dev, code block, turbo c++ and many more because some functions dose not work in SoloLearn you can get more freedom in the above applications
8th Apr 2018, 6:34 AM
Sahil Verma [Inactive]
Sahil Verma [Inactive] - avatar
+ 1
Brother first show me your code
8th Apr 2018, 6:32 AM
Sahil Verma [Inactive]
Sahil Verma [Inactive] - avatar