我新建了Qt项目,
使用Visual Studio 2017的“Qt VS Tools”工具打开该Qt项目,
使用NuGet包管理器搜索安装Aspose.Cells.Cpp,
然后include “Aspose.Cells.h”这个头文件,include “boost/intrusive_ptr.hpp”
根据chm帮助文件里的描述,写:
intrusive_ptr<Aspose::Cells::IWorkbook> workbook = Factory::CreateIWorkbook();
然后就提示错误:
错误 C1083 无法打开包括文件: “boost/intrusive_ptr.hpp”: No such file or directory (编译源文件 mainwindow.cpp) ExcelTest c:\qt\qt5.9.0\examples\qt-5.9\exceltest\packages\aspose.cells.cpp.18.8.0\build\native\include\system\object.h 4