Code Blocks problem with SDL |
MrTAToad
|
Are you trying to use the Visual Studio libraries with CodeBlocks ? If you are, and you aren't using the Visual Studio compiler then you have to use the GCC libraries.
|
|||||||||||
|
Lemonhead
|
Unfortunately I don't know how to solve your exact problem, but I know how to avoid it, perhaps. Just use a makefile and tell Code::Blocks the location. Using this method, it still shows all the files, runs, debugs, and does everything an IDE is supposed to do, so I don't really see any downside.
|
|||||||||||
|
GoldSpark
|
No i am not using visual studio files... How do I do that Lemonhead?
|
|||||||||||
|
Lemonhead
|
This is just one way to do it, but it has been working for me so far on linux. (I still can't get Android working, but it uses a whole separate build system.) I have this makefile in the project folder with flak.cpb. My source files are in "src" and binaries get sent to "bin". My game is named "flak" but you can overwrite that.
I'm using clang++, but you can change it to some other, like gcc or g++ if you want. Then in Code::Blocks, under Projects->Properties, set: - Makefile: "makefile" - This is a custom makefile: Check - Execution directory: "bin" Under the Build Targets tab, I also set my debug target to "bin/flak-d" and release to "bin/flak". |
|||||||||||||
|
Lemonhead
|
Correction: "bin/flak-debug" not "bin/flak-d"
|
|||||||||||
|
GoldSpark
|
Problem is fixed. I have been using wrong directory in linker options... :/
|
|||||||||||
|
GoldSpark
|
Thank you all for your assistance!
|
|||||||||||
|
MrTAToad
|
No problem!
|
|||||||||||
|