By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,767 Members | 1,375 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,767 IT Pros & Developers. It's quick & easy.

SWIG, C++, and Mac OS X

P: n/a
Hi,

I'm new to using python and SWIG. I am running Mac OS X 10.4. I have
a C++ class which I want to access from python, however I am unable
to compile it as a shared module in Mac OS X.

I have tried using Distutils and have successfully created a C
extension module, however I am unable to create a C++ extension
module (I dont know how to pass the -c++ parameter to swig in the
setup.py file.

I'd appreciate it If anyone could help me with creating a setup.py
file for use with c++ or compiling a shared module on OS X.

Thanks!
Jul 5 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
why are you modifying your setup.py file? can't you just run:
swig -c++ -python exampleFile.i
?

have you seen http://www.swig.org/tutorial.html , does it describe
something like what you'd like to do?

n

Jul 5 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.