Skip to main content
Topic: [patch] Issues compiling Makeobj with MSVC (Read 3339 times) previous topic - next topic

[patch] Issues compiling Makeobj with MSVC

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!

Re: [patch] Issues compiling Makeobj with MSVC

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

Re: [patch] Issues compiling Makeobj with MSVC

Reply #2
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!

 

Re: [patch] Issues compiling Makeobj with MSVC

Reply #3
Thank you for fixing this one!
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.