Swig - problem with visual c++ extension exercise

S

S Green

I keep getting an error unresolved external symbol initexample when
running
python setup.py build,

.....for a basic example.cpp, c++ extension exercise for python.

I did however successfully create an example_wrap.c.

I how do I resolve this?

(based this exercise on Siegfried Gonzi's news group message dated
16/04/2002, which used a setup.py to generate the necessary files)

cheers


S Green
 
L

Lyle Johnson

S said:
I keep getting an error unresolved external symbol initexample when
running python setup.py build,

<snip>

This problem is not unique to Visual C++. Please see this section of the
SWIG documentation (19.2.3, "Compiling a dynamic module"):

http://www.swig.org/Doc1.3/Python.html#n6

and pay special attention to the last two paragraphs in that section
(beginning with "When linking the module, ...").

Hope this helps,

Lyle
 

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

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top