Hi all,
as all people asking here for tips on how to compile free orion I want to do that, too.
Ok, I'm using gcc version 3.2.3 (mingw special 20030504-1) configure runs through but compiling not:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/GG -I/usr/include/GG/net -I/usr/include/GG/SDL -I/usr/include/zlib -I/usr/include/SDL -Dmain=SDL_main -I/usr/include/freetype2 -DFREEORION_WIN32 -g3 -Wall -MT NetworkCore.o -MD -MP -MF ".deps/NetworkCore.Tpo" \
-c -o NetworkCore.o `test -f '../network/NetworkCore.cpp' || echo './'`../network/NetworkCore.cpp; \
then mv ".deps/NetworkCore.Tpo" ".deps/NetworkCore.Po"; \
else rm -f ".deps/NetworkCore.Tpo"; exit 1; \
fi
../network/NetworkCore.cpp:41: no `void NetworkCore::SendMessageA(const
Message&, int, const std::string&) const' member function declared in class
`NetworkCore'
../network/NetworkCore.cpp: In member function `void
NetworkCore::ReceiveData(int, std::string&, const std::string&)':
../network/NetworkCore.cpp:153: cannot convert `Message' to `const MSG*' for
argument `1' to `LONG DispatchMessageA(const MSG*)'
make[2]: *** [NetworkCore.o] Error 1
This seems not to be an plattform specific error... maybe the last one, but I cannot fix them. My NetworkCore.cpp has 92 lines so how could there be a line 153? And why whant the compiler NetworkCore::SendMessageA? there is only a function NetworkCore::SendMessage, or not?
And I had had to modify util/Process.h In Win32 it uses STARTUPINFO and PROCESS_INFORMATION which are windows types... but there is nowhere an include of these windows types. Maybe i crashed my installtion of... yeah of what? to fix this I added
Code:
#ifdef FREEORION_WIN32
#include <windows.h>
#endif
right after
Code:
// assume Linux environment by default
#if (!defined(FREEORION_WIN32) && !defined(FREEORION_LINUX))
#define FREEORION_LINUX
#endif
I hope this has nothing to do with the error in NetworkCore.
so far, blackdrag