推荐学习书目
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 · 3397 views
    This topic created in 3992 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
        1
    janxin  
       Jun 29, 2015
    应该不能,我记得x86/64之间调用会崩溃
    neoblackcap
        2
    neoblackcap  
       Jun 29, 2015
    x86-64可以调用x86的,反之不可以
    losincasablanca
        3
    losincasablanca  
       Jun 29, 2015
    “python 64位的版本能调用C++ 32位的扩展吗?”亲测,行不通!
    nooper
        4
    nooper  
    OP
       Jun 29, 2015 via iPad
    @losincasablanca 到底谁的对啊
    Karblue
        5
    Karblue  
       Jun 30, 2015
    理论上x64 可以调用x86 而x86 无法调用x64 因为x86 的内存寻址和x64 不同,x64的call 方式 也和x86 不同
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5931 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 06:12 · PVG 14:12 · LAX 23:12 · JFK 02:12
    ♥ Do have faith in what you're doing.