我已经到了最后的边缘,我正在研究文件保存和序列化,但是得知C++没有像Python的精彩的pickle
一样本地序列化能力。但幸运的是,它有Boost - 所以我开始了安装Boost 1.47的任务,以便能够序列化我的对象。
然而,到目前为止,还没有成功。我最初想使用这个:http://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef ,但是我不断收到版本不匹配的错误,尝试多次寻找与1.47兼容的Boost Jam(我只找到了1.3.19,似乎是为1.46构建的),我发现该页面已经过时了一年半。
然后,在进行了大量搜索后,我被指向了这里:http://www.boost.org/doc/libs/1_47_0/doc/html/bbv2/installation.html 。但是这也行不通。当运行\bootstrap.bat时,我遇到了以下错误:
无法构建Boost.Build引擎。 请查阅bootstrap.log了解更多诊断信息。
哦?嗯,没有任何日志文件,但有一个名为bootstrap的文本文件,其中包含以下内容:
Setting environment for using Microsoft Visual Studio 2010 x86 tools.
###
### Using 'vc10' toolset.
###
c:\Program Files (x86)\CodeBlocks\MinGW\downloaded\boost_1_47_0\tools\build\v2\engine>if exist bootstrap rd /S /Q bootstrap
c:\Program Files (x86)\CodeBlocks\MinGW\downloaded\boost_1_47_0\tools\build\v2\engine>md bootstrap
c:\Program Files (x86)\CodeBlocks\MinGW\downloaded\boost_1_47_0\tools\build\v2\engine>cl /nologo /RTC1 /Zi /MTd /Fobootstrap/ /Fdbootstrap/ -DNT -DYYDEBUG -wd4996 kernel32.lib advapi32.lib user32.lib /Febootstrap\jam0 command.c compile.c debug.c execnt.c expand.c filent.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c newstr.c option.c output.c parse.c pathunix.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c md5.c pwd.c class.c w32_getreg.c native.c modules/set.c modules/path.c modules/regex.c modules/property-set.c modules/sequence.c modules/order.c
command.c
compile.c
debug.c
execnt.c
execnt.c(29) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
expand.c
filent.c
glob.c
hash.c
hdrmacro.c
headers.c
jam.c
jam.c(581) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
jambase.c
jamgram.c
lists.c
make.c
make1.c
newstr.c
option.c
output.c
parse.c
Generating Code...
Compiling...
pathunix.c
pathunix.c(275) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
regexp.c
rules.c
scan.c
search.c
subst.c
timestamp.c
variable.c
modules.c
strings.c
filesys.c
builtins.c
md5.c
pwd.c
class.c
w32_getreg.c
w32_getreg.c(18) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
native.c
set.c
path.c
regex.c
Generating Code...
Compiling...
property-set.c
sequence.c
order.c
Generating Code...
现在,我真的很困惑。对于所有这些,我已经超出了我的能力范围 - 我仍然只是编写侧向卷轴游戏,并且只有几个月的C++能力。我不知道我做错了什么。有人能指导我一个清晰、完整的一步一步指南之类的东西吗?我只想将Boost安装到我的系统上!