[xmoto-dev] Getting SDL_gfx to work with visual c++

[ Thread Index | Date Index | More lists.tuxfamily.org/xmoto-dev Archives ]


Hello,

first of all I'm very impressed about all those things which have
happened to xmoto lately :)

I was trying to compile xmoto with sdl_gfx enabled on my windows
machine, and stumbled into the following problem:

On line 315-316 in VDrawSDLgfx.cpp:

Sint16 x[size];
Sint16 y[size];

Is that standard C++ and not just a GCC extension? Well, under all
circumstances it won't compile in visual c++. My suggestion would be
to either used a large fixed value for 'size', or use dynamic
allocation instead.

--
Rasmus Neckelmann



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/