[Matrix-SIG] swig - visual studio

pascucci pascucci at cs.utexas.edu
Tue Jun 1 13:43:24 EDT 1999


Thank you. It worked.

I have one more question:
how can I debug a piece of code in a dll starting from the python environment?
If the code crashes the debugger seems to start automatically  ... but what if I want
to
stop in another breakpoint before the error occurs?

Valerio

Roger Burnham wrote:

> On 1 Jun 99, at 9:50, pascucci mused:
>
> > How can I set a visual studio project to preprocess a "filename.i" with SWIG
> > and generate automatically the appropriate wrapper?
> > thanks
> > Valerio
> >
> >
>
> Using VC++ 6.0:
>
> Add a def for SWIG_EXE to your autoexec.bat:
>    set SWIG_EXE=C:\DevSrc\Swig\SWIG1.1p4\bin\swig.exe
>
> Add the .i file to the project.
>
> In the FileView, right-click on the .i, choose properties, and add a custom build
> step:
>
>    Description:  Swigging up <yourModuleName>.c...
>    Commands:  $(SWIG_EXE) -python -o <yourModuleName>.c <yourModuleName>.i
>    Outputs:       <yourModuleName>.c
>
> Cheers,
>
> Roger Burnham
> Cambridge Research & Instrumentation
> rburnham at cri-inc.com
> http://www.cri-inc.com/
> http://starship.python.net/crew/roger/
> PGP Key: http://www.nai.com/default_pgp.asp
> PGP Fingerprint: 5372 729A 9557 5F36 177F  084A 6C64 BE27 0BC4 CF2D


_______________________________________________
Matrix-SIG maillist  -  Matrix-SIG at python.org
http://www.python.org/mailman/listinfo/matrix-sig



More information about the AstroPy mailing list