matrixcascade
我把 PainterEngine_SDK 源码包放在CentOS的 /opt 目录,C的开发工程目录在 /home/[user]/Document/GCC 文件夹,SDK platform Linux 里面 makefile 的修改路径 project_path := "/home/ssr/Documents/GCC",开发工程文件就是一个 main window 的窗体代码,进入 /opt/PainEngine/platform/Linux 目录执行make之后报错。
这是什么原因?
C文件源码
#include "/opt/PaintEngine/PainterEngine.h"
int main()
{
PainterEngine_Initialize(800, 600);
return 1;
}
make报错LOG
[root@NeroPC linux]# uname -a
Linux NeroPC 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@NeroPC linux]# make
gcc -c ../../core/PX_3D.c -o ../../core/PX_3D.o
In file included from ../../core/PX_3D.h:7,
from ../../core/PX_3D.c:1:
../../core/PX_Texture.h:37: error: redefinition of typedef ‘px_shape’
../../core/PX_Png.h:8: note: previous declaration of ‘px_shape’ was here
make: *** [../../core/PX_3D.o] Error 1