V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
nooper
V2EX  ›  Python

求高人帮忙解决一个 c++和 Python 接口互相调用啊,有偿

  •  
  •   nooper · 2015-06-04 12:51:51 +08:00 via iPad · 3878 次点击
    这是一个创建于 3258 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我已经尝试过cython,ctypes。但是python直接调用封装接口就回出现异常。
    要求熟悉c++和python这是必须条件。
    改项目为个人所有,咨询人员和接活人不得公布代码。上传代码到第三方任何平台。
    对python的gil和c++之间有很深的理解。
    只需解决程序爆异常问题,无需写大量代码。
    价位在1000元。
    联系365五o40二九

    第 1 条附言  ·  2015-06-04 14:31:23 +08:00
    只在Windows平台。
    第 2 条附言  ·  2015-06-04 15:43:32 +08:00
    真心求高手实在不行就只能放国外的需求去了
    11 条回复    2015-06-04 22:34:54 +08:00
    androidiatestrob
        1
    androidiatestrob  
       2015-06-04 13:30:28 +08:00
    用c 封装一下c++ 些的动态库接口,ctypes不能处理c++的虚函数表
    jedyu
        2
    jedyu  
       2015-06-04 13:37:00 +08:00
    swig
    wegamekinglc
        3
    wegamekinglc  
       2015-06-04 13:48:53 +08:00
    Why not swig?
    nooper
        4
    nooper  
    OP
       2015-06-04 13:52:56 +08:00 via iPad
    能用过的都用了在试下swig不行我就能直接c++
    fy
        5
    fy  
       2015-06-04 17:19:47 +08:00
    可以试试sip,强于swig(支持重载,虚函数支持不支持忘记了)。
    hupeng
        6
    hupeng  
       2015-06-04 17:32:15 +08:00
    VS在编译的c动态库的时候,不能为debug模式
    laotaitai
        7
    laotaitai  
       2015-06-04 21:00:06 +08:00
    1000元你好意思!!!!! 你好意思!!!!!!!!!!
    icedx
        8
    icedx  
       2015-06-04 22:13:01 +08:00
    我就看着楼主
    lZl
        9
    lZl  
       2015-06-04 22:15:30 +08:00
    boost python
    fghzpqm
        10
    fghzpqm  
       2015-06-04 22:30:33 +08:00 via Android
    Windows 平台的话可能是 Python 连接的 C 运行时库和库连接的 C 运行时库不兼容。
    nooper
        11
    nooper  
    OP
       2015-06-04 22:34:54 +08:00
    @icedx 说已解决,我会看看方案是否靠谱。先付款然后再确认方案。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1073 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 17:59 · PVG 01:59 · LAX 10:59 · JFK 13:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.