eclipse 中通过Cygwin编译c++的python调用, “Python27/include/pyconfig.h:68:16: fatal error: io.h: No such file or directory”

鱼鱼鱼儿 发布于 2013/10/02 12:32
阅读 7K+
收藏 1

错误提示:

Python27/include/pyconfig.h:68:16: fatal error: io.h: No such file or directory 

#include <io.h>
                ^
/cygdrive/d/android-ndk-r9/build/core/build-binary.mk:348: recipe for target 

背景:

android用Cygwin编译c++, c++中有引用python.h

具体:

我在cpp有对python的调用, include了 "python.h",  vc2012中编译没有问题, 调试中也可以调用到python的方法, 但是因为我是用cocos2dx框架开发的手机游戏, 要生成apk文件, 在eclipse平台通过Cygwin编译却提示 引用了python.h的cpp文件找不到, 如上的错误...

我尝试了

在eclipse->Properties->C/C++ General->Paths and Sysbols->includes的assembly中

在环境变量path中

把"D:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include"添加

还是编译通不过..

非常肯定大神帮忙看看啊..感激不尽..

加载中
0
鱼鱼鱼儿
鱼鱼鱼儿
/cygdrive/d/android-ndk-r9/build/core/build-binary.mk:348: recipe for target `obj/local/armeabi/objs/cocos2dcpp_shared/__/__/Classes/CServerAssist.o' failed
                 from jni/../../Classes/CServerAssist.cpp:2:
make: Leaving directory `/cygdrive/d/cocos2d-x-3.0alpha0-pre/projects/CityPlusPlus/proj.android'
D:/cocos2d-x-3.0alpha0-pre/projects/CityPlusPlus/proj.android/../../../cocos2dx/../../../Python27/include/pyconfig.h:68:16: fatal error: io.h: No such file or directory
 #include <io.h>
                ^
compilation terminated.
make: *** [obj/local/armeabi/objs/cocos2dcpp_shared/__/__/Classes/CServerAssist.o] Error 1


**** Build Finished ****


eclipse的提示错误..大伙帮忙看看啦..

0
B_y
B_y
你的io.h是在某个文件夹里面的吧?尝试在 pyconfig.h的include "io.h"中加上目录
返回顶部
顶部