推荐学习书目
› 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

Python 调用 C++ , 32 位, 64 位版本问题

  •  
  •   nooper · Jun 29, 2015 · 3676 views
    This topic created in 4157 days ago, the information mentioned may be changed or developed.

    python 32位,能调用64位版本的c++扩展吗?我感觉编译的时候出错了。

    python 64位的版本能调用C++ 32位的扩展吗?

    Supplement 1  ·  Jun 29, 2015
    python64位的会不会有什么问题呢?
    5 replies  •  2015-06-30 11:40:09 +08:00
    janxin
    janxin
    Jun 29, 2015
    1
    应该不能,我记得x86/64之间调用会崩溃
    neoblackcap
    neoblackcap
    Jun 29, 2015
    2
    x86-64可以调用x86的,反之不可以
    losincasablanca
    losincasablanca
    Jun 29, 2015
    3
    “python 64位的版本能调用C++ 32位的扩展吗?”亲测,行不通!
    nooper
    nooper
    OP
    Jun 29, 2015 via iPad
    4
    @losincasablanca 到底谁的对啊
    Karblue
    Karblue
    Jun 30, 2015
    5
    理论上x64 可以调用x86 而x86 无法调用x64 因为x86 的内存寻址和x64 不同,x64的call 方式 也和x86 不同
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1929 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 09:04 · PVG 17:04 · LAX 01:04 · JFK 04:04
    ♥ Do have faith in what you're doing.