The International Simutrans Forum

 

Author Topic: main undefined?  (Read 424 times)

0 Members and 1 Guest are viewing this topic.

Offline wlindley

  • Devotee
  • *
  • Posts: 1063
    • Hacking for fun and profit since 1977
  • Languages: EN, DE
main undefined?
« 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:
Code: [Select]
/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?

Offline Freahk

  • Devotee
  • *
  • Posts: 1500
  • Languages: DE, EN
Re: main undefined?
« Reply #1 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.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10626
  • Languages: De,EN,JP
Re: main undefined?
« Reply #2 on: April 10, 2021, 03:35:48 PM »
This looks like SDL2 config or pkg├čconfig has not been correctly executed.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20768
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: main undefined?
« Reply #3 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.

Offline wlindley

  • Devotee
  • *
  • Posts: 1063
    • Hacking for fun and profit since 1977
  • Languages: EN, DE
Re: main undefined?
« Reply #4 on: April 11, 2021, 08:33:30 PM »
Works great, THANKS!