Original Post
Hi, one short question: Why doesn't VS.Net 2003 compile this code: This code compiles under gcc3. I get error C2059 and C2334. I would post the whole error messasge, but it isn't english :) Something like: unexpected token(s) preceding "{"; skipping visible function text Thanks for your help :)
typedef struct tKeyName {
std::string name;
SDLKey sdlkey;
} tKeyName;
tKeyName KeyNames[] = {
{"a", SDLK_a},
{"LEFT", SDLK_LEFT},
{"RIGHT", SDLK_RIGHT},
{"UP", SDLK_UP},
{"DOWN", SDLK_DOWN},
{"ESC", SDLK_ESCAPE},
{"MOUSE1", SDLK_WORLD_0},
{"MOUSE2", SDLK_WORLD_1},
{"MOUSE3", SDLK_WORLD_2},
{"WHEELUP", SDLK_WORLD_3},
{"WHEELDOWN", SDLK_WORLD_4},
{"", SDLK_LAST}
};