I'm new to code::blocks. I have a simple project, only two source files, a header and a bitmap. I never told code::blocks what to do, just let it put in its default values. The issue is, it creates a binary that seg faults when calling the SDL2 library function IMG_LoadTexture.
I created a hand coded makefile that builds the project and it works as expected: no seg fault.
Is there a way I can get code::blocks to create a makefile so that I may see exactly what it's using for parameters to g++?
Maybe I'm dense, but if your code compiles, I don't think the issue is in the makefile.
What is the code you have to load an image, do you make sure that the image was actually loaded? If your code uses relative paths, there might be a problem with the directory that Code::Blocks puts the binary.