Hello. I decided to make a little animation program with c++ and SDL. basically a man runs when you keep the right button pressed, even with birds moving in the sky while you run. I use Code::Blocks for this. When I Build it and run it, it works fine. Yet whenever I try to open it from the project's /bin/Release executable file, a window pops up and disappears like a flash. If I run that from the terminal, it says there's been a Segmentation fault. Hmmm?
After looking at past projects, I thought of eliminating the colorkey part. No more segmentation faults, but then the only thing that would appear was a black screen. Yet I know SDL starts up correctly since there's no error output, and when I press the ESCAPE key, it closes as designed. So I'm assuming it's the bitmaps not being loaded or displayed somehow. I'd be really grateful if someone could help with this, it's very annoying. Also I'd like to know if possible WHY does the colorkey segment give a segmentation fault. It's something I can't really delete unless all my images are squares or rectangles wich is'nt normally the case. Thanks in advance! Oh, and I'm running Debian Testing, up to date, don't know the version name.