News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

[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.

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

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.

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

jamespetts

Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.