zl程序教程

您现在的位置是:首页 >  其他

当前栏目

背景建模技术(八):bgslibrary_vs2010_mfc中boost的安装与配置

安装配置建模技术 mfc 背景 Boost VS2010
2023-09-14 08:57:58 时间
p br /p p 在玩BGS Library时,有一个MFC的项目,在编译的过程中出现如下图的错误提示: /p p >

一、boost的下载与安装


在玩BGS Library时,有一个MFC的项目,在编译的过程中出现如下图的错误提示:


即:

1 e:\bgslibrary-master\vs2010mfc\src\stdafx.h(50): fatal error C1083: Cannot open include file: boost/lexical_cast.hpp: No such file or directory

根本原因在于没有安装和配置boost,下面对bgslibrary_vs2010_mfc中boost的安装与配置做一个详解。

(1)、首先下载Boost C++ Libraries,下载地址是:http://www.boost.org/

(2)、将压缩包解压至C盘

(3)、编译源代码:在源代码中找到一个批处理bootstrap.bat,运行即可。

注:此时会弹出一个窗口,过一会之后,源代码中新增了1个文件bjam.exe

(4)、运行bjam.exe即编译,编译界面如下图所示:



二、bgslibrary_vs2010_mfc中boost的配置

第一步:


第二步:


第三步:



三、“error RC2135: file not found: Visual”的解决方法

在资源管理器中打开rc文件,另存为unicode格式的文件。然后再在VS2010中打开rc文件,进行编译即可。


四、“error RC2255: named STRINGTABLEs are not allowed”的解决办法

P.S:这个问题仍未解决,待后面解决之后更新此部分。




【20160924】GOCVHelper MFC增强算法(5) CString ExportListToExcel(CString sExcelFile,CListCtrl* pList, CString strTitle)  {  CString warningStr;  if (pList- GetItemCou...
【20160924】GOCVHelper MFC增强算法(4) //string替换     void string_replace(string & strBig, const string & strsrc, const string &strdst)     {         string::size_type pos=0;         string::size_type srclen=strsrc.
    int writeCsv(const string& filename,const VectorsrcVect,char separator ){         ofstream file(filename.