News:

Simutrans Sites
Know our official sites. Find tools and resources for Simutrans.

[patch] Issues compiling Makeobj with MSVC

Started by VS, January 03, 2009, 05:43:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

VS

Msvc treats a .c file as a C source (why not) and forbids declarations in any place. Why it works elsewhere escapes me.

This patch moves some declarations upwards so that the code compiles.

prissi

MSVC failed to compile a working executable of makeobj until 6.0. Later version were never tested. I will look into it.

VS

Well, I tested it with the project files uploaded (newly) to the stickied thread. It compiles, links, and works. Didn't test the pak-files, though...

Only 1 declaration of variable is in the middle of block and must be moved to beginning. That is the patch.

jamespetts