News:

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

Compileerror in Version 3689 (all Systems, but not windows)

Started by wernieman, August 20, 2010, 06:36:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wernieman

The Nightly-Server have Problem with compiling the 3689

The last Lines with the gcc3:
dataobj/einstellungen.cc: In member function `void einstellungen_t::parse_simuconf(tabfile_t&, sint16&, sint16&, sint16&, std::string&)':
dataobj/einstellungen.cc:671: warning: cast from `const char*' to `void*' discards qualifiers from pointer target type
===> CXX dataobj/fahrplan.cc
===> CXX dataobj/freelist.cc
===> CXX dataobj/koord.cc
===> CXX dataobj/koord3d.cc
===> CXX dataobj/loadsave.cc
===> CXX dataobj/marker.cc
===> CXX dataobj/network.cc
dataobj/network.cc: In function `const char* network_open_address(const char*)':
dataobj/network.cc:127: error: `gethostbyname' was not declared in this scope
dataobj/network.cc:129: error: invalid use of undefined type `struct hostent'
dataobj/network.cc:126: error: forward declaration of `struct hostent'
dataobj/network.cc:127: warning: unused variable 'gethostbyname'
dataobj/network.cc: In function `void network_core_shutdown()':
dataobj/network.cc:630: warning: cast from `const char*' to `void*' discards qualifiers from pointer target type
make: *** [dataobj/network.o] Error 1


I get this eror in:
ERROR gcc gcc3 und Version 3689
ERROR gcc gcc4 und Version 3689
ERROR gcc linux64 und Version 3689
ERROR gcc macintel und Version 3689
ERROR gcc macpowerpc und Version 3689
I hope you understand my English

Frank

Linux already gave it to the error with r3686

Windows MS VC++ works

wernieman

Windows-Cross-Compiler (mingw32 on Linux with cross-gcc) work too

Only (see my post) linux and mac have the problem ...
I hope you understand my English

prissi