Skip to main content
Topic: Compileerror in Version 3689 (all Systems, but not windows) (Read 2492 times) previous topic - next topic

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

The Nightly-Server have Problem with compiling the 3689

The last Lines with the gcc3:
Code: [Select]
dataobj/einstellungen.cc: In member function `void einstellungen_t::p****_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:
Code: [Select]
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


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

Reply #2
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

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

Reply #3
SHould be solved, input file was missing.