News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

main undefined?

Started by wlindley, April 10, 2021, 12:49:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wlindley

Back at my main Linux Mint computer after a few weeks trying to compile the latest, and no matter what I try I keep getting this error from the linker:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'

I have tried re-running configure and verifying all the configuration to no avail.
Any suggestions where to look / fix what is wrong?

Mariculous

That is a problem with the makefile in the lastest nightly.
I am not yet sure what exactly is causing this but I guess soe new dependencies were not added to the makefile.

I'll have a look at this. In the meantime you can use CMake to build the game.

prissi

This looks like SDL2 config or pkgßconfig has not been correctly executed.

jamespetts

I have now incorporated Roboron's fix to this - thank you to him for dealing with this so promptly.
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.

wlindley