我发现这个类似的问题在 SO: error: ‘Page’ was not declared in this scope 但它是一种不同的情况,因为我没有处理头文件。 正如你可以从下面的代码中看到的,我使用PoDoFo库试图为PDF文件的内容打印到屏幕 #include <iostream>
#include <podofo/podofo.h>
using namespace std;
in
我正在重写一些代码以消除全局变量,并且让一个构造函数/析构函数处理某些第三方库资源的清理,但是我担心一些代码会从类初始化程序列表中的其他成员初始化一个成员。 class MyPodofoDocument {
public:
// generates pdf to stream
MyPodofoDocument(std::stringstream *pStringStream)