Writing a C++ extension for Python 2.7 with Visual Studio

preview_player
Показать описание
In this video I demonstrate how to write and debug a C++ extension for Python, using Visual Studio 2010.

This demo supposes that Python 2.7 is installed in c:\python27

I also use TCC/LE which is a free, improved command shell by JPSoft. You can use a Windows Command Prompt instead.
Рекомендации по теме
Комментарии
Автор

Thank you so much.... after 1 month, finally someone explain for dummies.... :D

MrFenrirmidgart
Автор

Great and elegant tutorial, Thanks Michael!

林心云-xo
Автор

Excellent! This video saved me so much time.

sigururgirjonsson
Автор

OMG dude love you. Thanks for this great tutorial! I've been looking for a way to do it since few days now

ryujin
Автор

you rule! Thanks for the awesome demo.

samrockseagle
Автор

Wow that was great stuff man. Thanks a lot!

Dhavalmj
Автор

Great tutorial by far the best ive found on this matter. I have just one question, will the functions written in c++ this way and called from a python program be executed at full c++ speed?

aquan
Автор

For debugging Python extensions, have a look at this:

PTVS 2.0 Beta: Mixed-Mode Python/C/C++ Debugging overview

inth
Автор

hye im not getting it is still giving build failed error plzz help me

sandhyaacharya
Автор

I get this error

LNK2001 unresolved external symbol __imp__Py_InitModule4

on 5:36 (build failed)

Any idies?

Thanks, Shefy

shefyg
Автор

Thank you for the tutorial! i get Always this Error when i want to execute for example add_one(1) : Traceback (most recent call last):
File "<stdin>", line 1, in <module>

SystemError: error return without exception set
How can i solve it please ??

ahmedsarbeji
Автор

Hey Michael, good tutorial. I have a doubt, after checking the directories till spam/debug in command prompt you use python, to run interpreter, but i'm not able to do that in command prompt. It says python is not recognised etc. Any solution?? Thx

madan
join shbcf.ru