I'm writing a simple program to experiment with SDL. I use Dev-C++ as compiler. I use no optimization. The project type is "Win32 GUI", it's linked to:
-lmingw32
-lSDLmain
-lSDL
-lSDL_ttf
-lSDL_mixer
The beginning of the main.cpp looks like this:
It compiles without errors or warningmessages. But when I run the program, I get an error-message that says (translated): "In LIVE.exe an error occured and will be determinated...", the same error you get when a regular program crashes. After running the program, "cerr.txt" is empty, so even the first line of main() hasn't been executed. Can anyone help me?
The header is legal, yes. It seems an array of a class was the problem: I now use dynamic allocation instead of Cell cell[500][500], and it works fine.
This way, a textfile cerr.txt is created where all the ouput from cerr is stored, so I can read it after the program is crashed (I often use this as a debug-method). It always works fine. How should it be setup?