2012-01-04 31 views
0

我想在代码块中为C++设置pngwriter库。我已经使用这个教程(http://www.neuron-hub.com/2011/06/setting-up-pngwriter-with-code.html),但有些不起作用。我几乎是C++的初学者,而这些库安装正在杀死我。在代码块中安装PNGwriter库

当我建立它喜欢它的教程说,在代码块中打开另一个叫ft2build.h选项卡,并说

#ifndef __FT2_BUILD_UNIX_H__ 
#define __FT2_BUILD_UNIX_H__ 

/* `<prefix>/include/freetype2' must be in your current inclusion path */ 
#include <freetype/config/ftheader.h> 

#endif /* __FT2_BUILD_UNIX_H__ */ 

/* END */ 

所以,问题是没有任何人知道问题是什么吗?教程很简单,我重复了至少20次,结果是一样的。

+0

它会报告'#include 行错误吗? – Hossein 2012-01-04 17:30:50

+0

是的,在这一行。 – user1130187 2012-01-05 01:34:50

+0

那么你是如何构建freetype库的? (你有没有建立它)? – Hossein 2012-01-05 10:39:21

回答

-1

您必须将..\include\freetype2\包含到Codeblocks搜索必要标题的路径中。