蟒蛇和swig [英] python and swig

查看:82
本文介绍了蟒蛇和swig的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用python和swig。我是骗子,从swig生成.cpp和wrap文件之后,编译包文件给出了问题taht不能包含python.h,虽然它存在于python的Lib文件夹中。我该怎么做才能编译和创建一个目标文件,我正在使用Windows xp操作系统.Plz很快回复我,很紧急。


Ajit Pandey

Hi,
I''m using python and swig. I''m a begginner and after generating the .cpp and wrap file from swig the compilation of wrap file is giving problem taht can not include python.h, though it is present there in Lib folder of python.What should I do for compiling and creating a object file, I''m having Windows xp operating system.Plz reply me soon, its urgent.

Ajit Pandey

推荐答案




我正在使用python和swig。我是骗子,从swig生成.cpp和wrap文件之后,编译包文件给出了问题taht不能包含python.h,虽然它存在于python的Lib文件夹中。我该怎么做才能编译和创建一个目标文件,我有Windows XP操作系统.Plz很快回复我,很紧急。


Ajit Pandey
Hi,
I''m using python and swig. I''m a begginner and after generating the .cpp and wrap file from swig the compilation of wrap file is giving problem taht can not include python.h, though it is present there in Lib folder of python.What should I do for compiling and creating a object file, I''m having Windows xp operating system.Plz reply me soon, its urgent.

Ajit Pandey



您使用的是MS VC ++编译器吗?如果不是,哪一个?

Are you using MS VC++ compiler? If not, which one?



您使用的是MS VC ++编译器吗?如果没有,哪一个?
Are you using MS VC++ compiler? If not, which one?



是VC ++ 6.0,但可以使用turbo命令promt运行吗?


Yes VC++ 6.0, but will it be runnable with turbo command promt?



是VC ++ 6.0,但它是否可以使用turbo命令promt运行?
Yes VC++ 6.0, but will it be runnable with turbo command promt?



你应该有一个文件夹,比如D:\swigwin-1.3.29\Examples\python从简单开始项目。该项目将为您填写命令行。将项目编译到可编译的位置后,可以将命令复制到您喜欢的提示符。

You should have a folder some place like "D:\swigwin-1.3.29\Examples\python" Start with the "simple" project. This project will fill in the command line for you. After you have the project to a point where it will compile, you can copy the command to your favorite prompt.


这篇关于蟒蛇和swig的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆