The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: jspaces on April 25, 2011, 03:39:55 AM

Title: Latest gcc 4.6.0 causes error on compile with svn 4414
Post by: jspaces on April 25, 2011, 03:39:55 AM
Originally Simutrans-svn 4414 did not compile on my Arch Linux x86_64 system. Arch Linux just recently updated gcc to version 4.6. The prior version of gcc did not have any compile failures with the previous Simutrans-svn versions.
It produced the following error several times on a few different cc files. Error message stated:
../tpl/slist_tpl.h:64:12: error: 'ptrdiff_t' does not name a type

Upon further investigation, I was able to get simutrans-svn to compile by adding the following line into tpl/slist_tpl.h in the #include section:
#include <stddef.h>

Though I would let you know, thanks for all your efforts.

Title: Re: Latest gcc 4.6.0 causes error on compile with svn 4414
Post by: Dwachs on April 25, 2011, 08:19:18 AM
thank you.