[xmoto-dev] Getting SDL_gfx to work with visual c++ |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/xmoto-dev Archives
]
- To: xmoto-dev@xxxxxxxxxxxxxxxxxxx
- Subject: [xmoto-dev] Getting SDL_gfx to work with visual c++
- From: "Rasmus Neckelmann" <neckelmann@xxxxxxxxx>
- Date: Wed, 10 Jan 2007 12:25:45 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Tfj2slfok/UkDNg5noTiu1CK4TV2cLQb3gbEzsjQv4+ztt1cmX4AsmJMvQir1KmS8sw8Z5bN0vz9ZgbEmvSqiDD75VkSCZbEbd9K0PlepuEAGku94Nbx5M9XwC3mrC7eYIr82edHeIqEB/IP8GmeTgGARSMPxcu2/K2OjpAzdVo=
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