Wrapping C++ class with SWIG, Mac OS X

2008-04-12 Thread Paul Anton Letnes
> > Thanks a lot for the comments. So, I post the code, which should let > you recreate the circumstances. I'm on 10.5.2, python2.5 (from > Fink), and got SIP from FINK recently - should be the latest version. > > I know C++ to some extent - the linking is the hardest part for me > to grasp.

Re: Wrapping C++ class with SWIG, Mac OS X

2008-04-12 Thread Diez B. Roggisch
Paul Anton Letnes schrieb: > Okay, installed SIP. Looks promising, following the tutorial on > http://www.riverbankcomputing.com/static/Docs/sip4/sipref.html#using-sip > It should be noted that I am working on a Mac - I know there are some > differences, but it's still UNIX and should work somehow

Re: Wrapping C++ class with SWIG, Mac OS X

2008-04-12 Thread Paul Anton Letnes
Okay, installed SIP. Looks promising, following the tutorial on http://www.riverbankcomputing.com/static/Docs/sip4/sipref.html#using-sip It should be noted that I am working on a Mac - I know there are some differences, but it's still UNIX and should work somehow. Anyway, I copy-paste and create

Re: Wrapping C++ class with SWIG, Mac OS X

2008-04-11 Thread Diez B. Roggisch
Paul Anton Letnes schrieb: > Hello guys, > > > (related to previous thread on wrapping C/C++ in Python, trying the SWIG > approach.) > Trying to map a C++ class to python, one method for now. Running the > following commands to "compile": > > -- > #!/usr/bin

Wrapping C++ class with SWIG, Mac OS X

2008-04-11 Thread Paul Anton Letnes
Hello guys, (related to previous thread on wrapping C/C++ in Python, trying the SWIG approach.) Trying to map a C++ class to python, one method for now. Running the following commands to "compile": -- #!/usr/bin/env bash MOD_NAME=Wavelet swig -c++ -pyth