Sounds great, I would love to compile it for linux...! Seems like there is a problem with #include <fstream>, without that line there are not these errors, but then fopen etc. is unknown. Here the compiler errors:
bam: building 'server_release'
[ 1/45] #1 c++ src/game/generated/gs_data.cpp
[ 2/45] #1 c++ src/game/server/player.cpp
[ 3/45] #1 c++ src/game/server/eventhandler.cpp
[ 4/45] #1 c++ src/game/server/hooks.cpp
src/game/server/hooks.cpp: In function »void mods_init()«:
src/game/server/hooks.cpp:754: Warnung: veraltete Konvertierung von Zeichenkettenkonstante in »char*«
[ 5/45] #1 c++ src/game/server/entities/pickup.cpp
[ 6/45] #1 c++ src/game/server/entities/character.cpp
In Datei, eingefügt von /usr/include/c++/4.3/bits/char_traits.h:46,
von /usr/include/c++/4.3/ios:46,
von /usr/include/c++/4.3/istream:45,
von /usr/include/c++/4.3/fstream:45,
von src/game/server/entities/character.cpp:11:
/usr/include/c++/4.3/bits/stl_algobase.h:232:56: Fehler: dem Makro »min« wurden 3 Argumente übergeben, aber es nimmt nur 2
/usr/include/c++/4.3/bits/stl_algobase.h:252:56: Fehler: dem Makro »max« wurden 3 Argumente übergeben, aber es nimmt nur 2
In file included from /usr/include/c++/4.3/bits/char_traits.h:46,
from /usr/include/c++/4.3/ios:46,
from /usr/include/c++/4.3/istream:45,
from /usr/include/c++/4.3/fstream:45,
from src/game/server/entities/character.cpp:11:
/usr/include/c++/4.3/bits/stl_algobase.h:188: Fehler: expected unqualified-id before »const«
/usr/include/c++/4.3/bits/stl_algobase.h:188: Fehler: expected `)' before »const«
/usr/include/c++/4.3/bits/stl_algobase.h:188: Fehler: expected initializer before »const«
/usr/include/c++/4.3/bits/stl_algobase.h:210: Fehler: expected unqualified-id before »const«
/usr/include/c++/4.3/bits/stl_algobase.h:210: Fehler: expected `)' before »const«
/usr/include/c++/4.3/bits/stl_algobase.h:210: Fehler: expected initializer before »const«
/usr/include/c++/4.3/bits/stl_algobase.h:232: Fehler: Funktionsdefinition deklariert keine Parameter
/usr/include/c++/4.3/bits/stl_algobase.h:252: Fehler: Funktionsdefinition deklariert keine Parameter
/usr/include/c++/4.3/bits/stl_algobase.h: In static member function »static bool std::__lexicographical_compare<true>::__lc(const _Tp*, const _Tp*, const _Up*, const _Up*)«:
/usr/include/c++/4.3/bits/stl_algobase.h:904: Fehler: expected unqualified-id before »(« token
In file included from /usr/include/c++/4.3/string:58,
from /usr/include/c++/4.3/bits/locale_classes.h:47,
from /usr/include/c++/4.3/bits/ios_base.h:48,
from /usr/include/c++/4.3/ios:48,
from /usr/include/c++/4.3/istream:45,
from /usr/include/c++/4.3/fstream:45,
from src/game/server/entities/character.cpp:11:
/usr/include/c++/4.3/bits/basic_string.h: In member function »int std::basic_string<_CharT, _Traits, _Alloc>::compare(const std::basic_string<_CharT, _Traits, _Alloc>&) const«:
/usr/include/c++/4.3/bits/basic_string.h:1945: Fehler: expected unqualified-id before »(« token
In file included from /usr/include/c++/4.3/string:61,
from /usr/include/c++/4.3/bits/locale_classes.h:47,
from /usr/include/c++/4.3/bits/ios_base.h:48,
from /usr/include/c++/4.3/ios:48,
from /usr/include/c++/4.3/istream:45,
from /usr/include/c++/4.3/fstream:45,
from src/game/server/entities/character.cpp:11:
/usr/include/c++/4.3/bits/basic_string.tcc: In member function »typename std::basic_string<_CharT, _Traits, _Alloc>::size_type std::basic_string<_CharT, _Traits, _Alloc>::rfind(const _CharT*, typename _Alloc::rebind<_CharT>::other::size_type, typename _Alloc::rebind<_CharT>::other::size_type) const«:
/usr/include/c++/4.3/bits/basic_string.tcc:759: Fehler: expected unqualified-id before »(« token
/usr/include/c++/4.3/bits/basic_string.tcc: In member function »int std::basic_string<_CharT, _Traits, _Alloc>::compare(typename _Alloc::rebind<_CharT>::other::size_type, typename _Alloc::rebind<_CharT>::other::size_type, const std::basic_string<_CharT, _Traits, _Alloc>&) const«:
/usr/include/c++/4.3/bits/basic_string.tcc:896: Fehler: expected unqualified-id before »(« token
/usr/include/c++/4.3/bits/basic_string.tcc: In member function »int std::basic_string<_CharT, _Traits, _Alloc>::compare(typename _Alloc::rebind<_CharT>::other::size_type, typename _Alloc::rebind<_CharT>::other::size_type, const std::basic_string<_CharT, _Traits, _Alloc>&, typename _Alloc::rebind<_CharT>::other::size_type, typename _Alloc::rebind<_CharT>::other::size_type) const«:
/usr/include/c++/4.3/bits/basic_string.tcc:913: Fehler: expected unqualified-id before »(« token
/usr/include/c++/4.3/bits/basic_string.tcc: In member function »int std::basic_string<_CharT, _Traits, _Alloc>::compare(const _CharT*) const«:
/usr/include/c++/4.3/bits/basic_string.tcc:929: Fehler: expected unqualified-id before »(« token
/usr/include/c++/4.3/bits/basic_string.tcc: In member function »int std::basic_string<_CharT, _Traits, _Alloc>::compare(typename _Alloc::rebind<_CharT>::other::size_type, typename _Alloc::rebind<_CharT>::other::size_type, const _CharT*) const«:
/usr/include/c++/4.3/bits/basic_string.tcc:945: Fehler: expected unqualified-id before »(« token
/usr/include/c++/4.3/bits/basic_string.tcc: In member function »int std::basic_string<_CharT, _Traits, _Alloc>::compare(typename _Alloc::rebind<_CharT>::other::size_type, typename _Alloc::rebind<_CharT>::other::size_type, const _CharT*, typename _Alloc::rebind<_CharT>::other::size_type) const«:
/usr/include/c++/4.3/bits/basic_string.tcc:961: Fehler: expected unqualified-id before »(« token
In file included from /usr/include/c++/4.3/streambuf:801,
from /usr/include/c++/4.3/ios:49,
from /usr/include/c++/4.3/istream:45,
from /usr/include/c++/4.3/fstream:45,
from src/game/server/entities/character.cpp:11:
/usr/include/c++/4.3/bits/streambuf.tcc: In member function »virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsgetn(_CharT*, std::streamsize)«:
/usr/include/c++/4.3/bits/streambuf.tcc:59: Fehler: expected unqualified-id before »(« token
/usr/include/c++/4.3/bits/streambuf.tcc: In member function »virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsputn(const _CharT*, std::streamsize)«:
/usr/include/c++/4.3/bits/streambuf.tcc:93: Fehler: expected unqualified-id before »(« token
In file included from /usr/include/c++/4.3/istream:833,
from /usr/include/c++/4.3/fstream:45,
from src/game/server/entities/character.cpp:11:
/usr/include/c++/4.3/bits/istream.tcc: In member function »std::streamsize std::basic_istream<_CharT, _Traits>::readsome(_CharT*, std::streamsize)«:
/usr/include/c++/4.3/bits/istream.tcc:646: Fehler: expected unqualified-id before »(« token
In file included from /usr/include/c++/4.3/fstream:783,
from src/game/server/entities/character.cpp:11:
/usr/include/c++/4.3/bits/fstream.tcc: In member function »virtual typename std::basic_filebuf<_CharT, _Traits>::int_type std::basic_filebuf<_CharT, _Traits>::underflow()«:
/usr/include/c++/4.3/bits/fstream.tcc:309: Fehler: expected unqualified-id before »(« token
/usr/include/c++/4.3/bits/fstream.tcc: In member function »virtual std::streamsize std::basic_filebuf<_CharT, _Traits>::xsputn(const _CharT*, std::streamsize)«:
/usr/include/c++/4.3/bits/fstream.tcc:633: Fehler: expected unqualified-id before »(« token
bam: command returned error: 256
bam: error during build
I know, this is an english forum, but my compiler speaks german (okay Zeratul... its denglish ) to me, sorry! If you can't speak german I will try to find a way to give english outputs.
Btw, little mistake: