The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Ters on April 17, 2012, 04:25:47 AM

Title: [r5636] Can't compile makeobj
Post by: Ters on April 17, 2012, 04:25:47 AM
When I try to build makeobj with mingw, it fails with a linker error saying that there are two undefined references to dr_time from simtools.cc.
Title: Re: [r5636] Can't compile makeobj
Post by: kierongreen on April 17, 2012, 06:46:06 AM
Removing simtools from the Makefile removes this error. Is it needed? If it is fix would be to include simsys in makeobj.
Title: Re: [r5636] Can't compile makeobj
Post by: prissi on April 17, 2012, 10:02:12 AM
I think it should not be needed there, as it only includes the random number tools. (Maybe we should rename it to simrand?)

The dr_time can be also deleted, it was just to force sim_async_rand to have different numbers in clients and servers.
Title: Re: [r5636] Can't compile makeobj
Post by: Ters on April 18, 2012, 05:27:17 AM
If a C/C++ program compiles without a particular source file, it will almost certainly run fine without it. The leaner version of makeobj was able to build a pak that loaded just fine, though I haven't done any playtesting yet.
Title: Re: [r5636] Can't compile makeobj
Post by: prissi on April 18, 2012, 07:58:07 AM
Remove it from kaeobj.

Thank you.