Thanks for the reply! Yes, it was in explorer I first noticed the problem. I don't think SDL is the problem as my window opens up and then closes again, followed by the error.
I tried to debug the executable by displaying a popup messagebox (standard win32 box) at various places. The problem seemed to appear when I used a push_back function on one of my classes. A strange thing is that the program doesn't go to that particular segment of code when I debug it... (the message box only appears when I execute the binary itself). I'm getting grey hairs over this, thinking of trying the code in MSVC

The debugger should tell me if something is wrong with the push_back() shouldn't it?