我建立了一个qt项目在 project.pro 中引入了 asposepdf的 头文件和包
INCLUDEPATH += /usr/local/include
/home/sunxiao/Documents/01_cs/Aspose.PDF.Cpp.21.8.Linux/include/asposecpplib
/home/sunxiao/Documents/01_cs/Aspose.PDF.Cpp.21.8.Linux/include
LIBS += /home/sunxiao/Documents/01_cs/Aspose.PDF.Cpp.21.8.Linux/lib/libaspose_cpp_clang3_libstdcpp.so
/home/sunxiao/Documents/01_cs/Aspose.PDF.Cpp.21.8.Linux/lib/libAspose.PDF.Cpp_clang3_libstdcpp.so
但是 加入需要引入的文件以后发现 namespace 的异常
111.jpg (222.0 KB)
这是我的项目, 我运行在deepin 深度系统上
project.zip (34.7 KB)
异常
/home/sunxiao/Documents/01_cs/Aspose.PDF.Cpp.21.8.Linux/include/asposecpplib/system/smart_ptr.h:1521: error: no template named ‘enable_if_t’ in namespace ‘std’
In file included from …/project/asposepdf.cpp:1:
In file included from …/project/asposepdf.h:25:
In file included from …/…/Aspose.PDF.Cpp.21.8.Linux/include/Aspose.PDF.Cpp/DOM/PageMode.h:4:
In file included from …/…/Aspose.PDF.Cpp.21.8.Linux/include/asposecpplib/system/string.h:7:
In file included from …/…/Aspose.PDF.Cpp.21.8.Linux/include/asposecpplib/system/shared_ptr.h:5:
…/…/Aspose.PDF.Cpp.21.8.Linux/include/asposecpplib/system/smart_ptr.h:1521:6: error: no template named ‘enable_if_t’ in namespace ‘std’
std::enable_if_t<detail::has_print_to_function::value, void> PrintTo(const SmartPtr& object_ptr, std::ostream* stream)
我下载的包是 linux 64位
222.jpg (136.6 KB)