Problem building extension sample with Python 2.2.3

B

Bren

Hi,

I'm trying to build the sample extension file from
http://www.python.org/doc/current/ext/simpleExample.html.

I get a linker error:

Linking...
spam.obj : error LNK2001: unresolved external symbol
__imp__Py_InitModule4TraceRefs

Also, I find it necessary to ignore python22_d.lib and link
python22.lib explicitly when I make a Debug build.

I'm using MSVC++ 6.

Any help appreciated, thanks.
 
B

Bren

There's your problem, I think. You seem to be trying to build a debug
version of your module against a release version of Python. This
won't work.

Thanks, that worked!

Now, I am working on embedding python in a C/C++ app, so I would like
very much to be able to debug the code in C/C++ functions when they
are called by Python. Is it possible I could get a debug version of
this lib/dll somewhere to let me do this? Is there a python22_d.lib?
 
B

Bren

Thanks, that worked!

Now, I am working on embedding python in a C/C++ app, so I would like
very much to be able to debug the code in C/C++ functions when they
are called by Python. Is it possible I could get a debug version of
this lib/dll somewhere to let me do this? Is there a python22_d.lib?

Nevermind, I see the answer in another thread.

Ugh, this could be much easier...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top