471,351 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,351 software developers and data experts.

Swig - problem with visual c++ extension exercise

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
Jul 18 '05 #1
1 2421
S Green wrote:
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

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Prem | last post: by
21 posts views Thread by Paul Tremblay | last post: by
1 post views Thread by Howard | last post: by
8 posts views Thread by rapiddata | last post: by
7 posts views Thread by Abhi | last post: by
6 posts views Thread by Cirene | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.