News:

Simutrans Sites
Know our official sites. Find tools and resources for Simutrans.

Latest gcc 4.6.0 causes error on compile with svn 4414

Started by jspaces, April 25, 2011, 03:39:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jspaces

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.


Dwachs