How to setup codeblocks mingw sdl2.0

preview_player
Показать описание

How to setup codeblocks with mingw and sdl2.0. The tutorial shows how to get a basic SDL2.0 window running.
Рекомендации по теме
Комментарии
Автор

Ok, I did that, double checked it and everything, even reinstalled codeblocks. And it still didn't work, but I found that the problem lies somewhere with the includes setting. I took out the search directory and put the contents of the i686-w64-mingw32 to the mingw directory, and now the compiler works perfectly! I don't know what I could have done to make it not work, but what matters is that it works.
Thanks for all of that help you have given me. :)

ttocsneb
Автор

Ya, at first I noticed that the search directory was under compiler tab, so I changed it to the linker, and it still didn't work, then I was like screw it, and put the librarys in mingw.
I'm looking forward to your next sdl tutorial!

ttocsneb
Автор

Yes, I downloaded all three of the files and merged them together in the SDL2-2.0.0 directory. I will reinstall the files to make sure I didn't miss anything.

ttocsneb
Автор

Im having trouble with a loop saying, "It seems that this project has not been built yet. Do you want to build it now"  I have been searching all over the internet for an answer

czechnorris
Автор

I know you haven't talked about it in this video, but I looked in the properties, and there's a section about makefiles saying there needs to be one in the project directory, I found one in the sdl2-2.0.0 and put it in the directory, now it has a different build errror:
Running command: mingw32-make.exe -f Makefile Debug
mingw32-make.exe: *** No rule to make target `Debug'. Stop.
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings (0 minutes, 0 seconds)

ttocsneb
Автор

Hello there,

I get this error: "error LNK2019: unresolved external symbol _SDL_main referenced in function _main"

I'm using VS.

Thank you.

widden_
Автор

I have this error in building saying that it cannot find:
-lSDLmain -lSDL2 -lSDL2_image -lSDL2_mixer
I have checked that the search path is correct, and I do have -lmingw32 in the linker.

Do you know what could be the cause of this?

ttocsneb
welcome to shbcf.ru