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

Nick Stovall nsto135 at aol.com
Mon Nov 7 02:02:06 PST 2005


Rasmus Neckelmann <neckelmann <at> gmail.com> writes:


> 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?


vector<int> vec;
^This crashes the program at startup.

vector<int> vec(10);
^this won't even compile... error C2059: syntax error : 'constant'

I just tested it, that code works in other SDL apps,
 but not the one I need it to.








More information about the SDL mailing list