Compiling MCServer with codeblocks
#6
AString is a typedef in source/StringUtils.h, that file is included from source/Globals.h, which is included from every cpp file in the project. It is used for precompiled header generation in MSVC, so it has to be included using the very same line, >>#include "Globals.h"<< in every file, regardless of the path. That's why you need to set up the include paths correctly.

The include paths are in the INCLUDE variable in GNUmakefile:
Code:
INCLUDE = -I.\
        -Isource\
        -Isource/md5\
        -IWebServer\
        -Isource/items\
        -Isource/blocks\
        -Itolua++-1.0.93/src/lib\
        -Ilua-5.1.4/src\
        -Izlib-1.2.7\
        -IiniFile\
        -Itolua++-1.0.93/include\
        -Ijsoncpp-src-0.5.0/include\
        -Ijsoncpp-src-0.5.0/src/lib_json\
        -Iexpat
You need to set your project's include paths to match these (without the "-I", of course)

Maybe if you wrote your VS version and the exact error message, we could try find a fix for that. Not saying that having a C::B support would be nice, but for all of us on Windows, MSVC2008 Express is the primary IDE; and then there are the Linux gyus for whom there's GNUmakefile.
Reply
Thanks given by:


Messages In This Thread
Compiling MCServer with codeblocks - by wamilou - 05-23-2013, 01:37 AM
RE: Compiling MCServer with codeblocks - by xoft - 05-23-2013, 05:26 AM
RE: Compiling MCServer with codeblocks - by xoft - 05-23-2013, 05:20 PM
RE: Compiling MCServer with codeblocks - by xoft - 05-26-2013, 12:01 AM
RE: Compiling MCServer with codeblocks - by xoft - 05-26-2013, 12:52 AM



Users browsing this thread: 1 Guest(s)