[SDL] SDL and std::vector not mixing well...

Rasmus Neckelmann neckelmann at gmail.com
Mon Nov 7 01:26:13 PST 2005

> So, I'm at a point where I need to use vectors to keep track of entities in my
> game. I was a little rusty with vectors, so I just implemented them to keep
> track of and record the average framerate. It all compiled fine, but the program
> crashes on startup. After a little cross-reference to make sure I was using them
> correctly (I was), it still don't work. Simply declairing a vector crashes the
> program.

I'm using std::vector (and other STL stuff) extensively combined with
SDL, and have never experienced any problems with it.
Maybe it would be easier to help if you could post a minimal piece of
code that still produces the problem?

Rasmus Neckelmann

More information about the SDL mailing list