The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: wlindley on April 10, 2021, 12:49:19 PM

Title: main undefined?
Post by: wlindley on April 10, 2021, 12:49:19 PM
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?
Title: Re: main undefined?
Post by: Mariculous on April 10, 2021, 12:58:37 PM
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.
Title: Re: main undefined?
Post by: prissi on April 10, 2021, 03:35:48 PM
This looks like SDL2 config or pkgßconfig has not been correctly executed.
Title: Re: main undefined?
Post by: jamespetts on April 10, 2021, 07:40:06 PM
I have now incorporated Roboron's fix to this - thank you to him for dealing with this so promptly.
Title: Re: main undefined?
Post by: wlindley on April 11, 2021, 08:33:30 PM
Works great, THANKS!