Compiling the gServer

Verknüpfen…
libz.lib(compress.obj) : Es wurde ein mit /GL kompiliertes MSIL .netmodule oder module gefunden. Verknüpfung wird mit /LTCG erneut gestartet. Fügen Sie /LTCG zur Linkbefehlszeile hinzu, um die Linkerleistung zu erhöhen.
LINK : warning LNK4075: /INCREMENTAL wird aufgrund der Angabe von /LTCG ignoriert.
LINK : fatal error LNK1104: Datei “libboost_date_time-vc90-mt-gd-1_38.lib” kann nicht geöffnet werden.
Das Buildprotokoll wurde unter “file://c:\Dokumente und Einstellungen\Admin\Desktop\gserver-v2\build\server\obj\Debug\BuildLog.htm” gespeichert.
gserver - 1 Fehler, 3 Warnung(en)
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========

Even though its german, I hope you can help me! :frowning:

I find its a bitch to compile with Code::Blocks, using Visual C++ w/ Boost works much better.
Linking to the Boost Libraries can be a bitch at times, especially if a file is missing O_o…

Im using the VisualC++ stuff… any tips on how to fix it?

Should be a link to a pre compiled Boost (though slightly out of date) somewhere on the forums. Then just link to it via:

Start > System > Control Panel > System > Advanced > Enviroment Variables
And add the location to “Path”

Few other steps to follow in the Boost topic. (I had a bitch with it too)

All i was able to find is:

http://forums.graal.in/forums/showthread.php?t=1444&highlight=boost

Wow, the hell.

http://forums.graal.in/forums/showthread.php?t=1168
These are instructions for CodeBlocks, and that is the old pre-compiled boost.
Try joining the information together, even though its Visual C++.

C:/Programme/CodeBlocks/MinGW/bin/…/lib/gcc/mingw32/3.4.5/…/…/…/…/include/c++/3.4.5/cstdio:167: error: ::snprintf' has not been declared C:/Programme/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/cstdio:177: error:__gnu_cxx::snprintf’ has not been declared
In file included from C:/Programme/CodeBlocks/MinGW/bin/…/lib/gcc/mingw32/3.4.5/…/…/…/…/include/c++/3.4.5/iosfwd:46,
from C:/Programme/CodeBlocks/MinGW/bin/…/lib/gcc/mingw32/3.4.5/…/…/…/…/include/c++/3.4.5/bits/stl_algobase.h:70,
from C:/Programme/CodeBlocks/MinGW/bin/…/lib/gcc/mingw32/3.4.5/…/…/…/…/include/c++/3.4.5/vector:67,
from …/…/server/include/CSocket.h:45,
from C:\Dokumente und Einstellungen\Admin\Desktop\gserver-v2\server\src\CSocket.cpp:63:
C:/Programme/CodeBlocks/MinGW/bin/…/lib/gcc/mingw32/3.4.5/…/…/…/…/include/c++/3.4.5/mingw32/bits/c++locale.h: In function int std::__convert_from_v(char*, int, const char*, _Tv, int* const&, int)': C:/Programme/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/mingw32/bits/c++locale.h:72: error:snprintf’ is not a member of std' In file included from ../../../../../../Boost/include/boost-1_39/boost/date_time/microsec_time_clock.hpp:23, from ../../../../../../Boost/include/boost-1_39/boost/thread/thread_time.hpp:9, from ../../../../../../Boost/include/boost-1_39/boost/thread/win32/thread_data.hpp:10, from ../../../../../../Boost/include/boost-1_39/boost/thread/thread.hpp:15, from ../../../../../../Boost/include/boost-1_39/boost/thread.hpp:13, from ../../server/include/CLog.h:6, from C:\\Dokumente und Einstellungen\\Admin\\Desktop\\gserver-v2\\server\\src\\CSocket.cpp:74: ../../../../../../Boost/include/boost-1_39/boost/date_time/filetime_functions.hpp: In functionuint64_t boost::date_time::winapi::file_time_to_microseconds(const FileTimeT&)’:
…/…/…/…/…/…/Boost/include/boost-1_39/boost/date_time/filetime_functions.hpp:101: warning: left shift count >= width of type
C:\Dokumente und Einstellungen\Admin\Desktop\gserver-v2\server\src\CSocket.cpp: In function const char* errorMessage(int)': C:\\Dokumente und Einstellungen\\Admin\\Desktop\\gserver-v2\\server\\src\\CSocket.cpp:972: error:snprintf’ was not declared in this scope

Use Visual C++, not Code Blocks o_o
After that your only issue for compiling becomes BOOST.

Ok. All errors left when using VisualC++

libz.lib(compress.obj) : Es wurde ein mit /GL kompiliertes MSIL .netmodule oder module gefunden. Verknüpfung wird mit /LTCG erneut gestartet. Fügen Sie /LTCG zur Linkbefehlszeile hinzu, um die Linkerleistung zu erhöhen.
LINK : fatal error LNK1104: Datei “libboost_thread-vc90-mt-1_38.lib” kann nicht geöffnet werden.

Link error says, that the “libboost_thread-vc90-mt-1_38.lib” couldnt get opened.