News:

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

[r5636] Can't compile makeobj

Started by Ters, April 17, 2012, 04:25:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ters

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.

kierongreen

Removing simtools from the Makefile removes this error. Is it needed? If it is fix would be to include simsys in makeobj.

prissi

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.

Ters

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.

prissi