FTGL编译问题
使用freetype2 版本:2.3.4 和FTGL 2.1.3 rc5进行工程编译。IDE是VC2008
freetype2 和 FTGL 已经编译生成静态lib freetype243MT_D.lib 和 ftgl_static_D.lib
编译FTGL_Demo没有问题,毕竟所有的demo都可以执行。
但是自己编写的工程文件,对demo进行简单的移植,编译的时候却如下的错误:(友元和操作符重载的问题)
1>d:\visual studio 2008\test\mytest\include\ftgl\ftpoint.h(177) : error C2526: “operator *”: C 链接函数无法返回 C++ 类“FTPoint”
1> d:\visual studio 2008\test\mytest\include\ftgl\ftpoint.h(42) : 参见“FTPoint”的声明
1>d:\visual studio 2008\test\mytest\include\ftgl\ftpoint.h(190) : error C2733: 不允许重载函数“operator *”的第二个 C 链接
1> d:\visual studio 2008\test\mytest\include\ftgl\ftpoint.h(189) : 参见“operator *”的声明
1>d:\visual studio 2008\test\mytest\include\ftgl\ftpoint.h(178) : error C2562: “operator *”: “void”函数返回值
1> d:\visual studio 2008\test\mytest\include\ftgl\ftpoint.h(176) : 参见“operator *”的声明
这是什么问题呢? 我对比了编译选项,没有什么差别啊。
使用了 #include <IOSTREAM> 没有增加using namespace std; 因为增加了之后一堆的问题。
无法使用#include <iostream.h>
好几天了没有弄明白,望高人指点。