Accessing typedefs from python using swig


#1

This is probably more of a swig question. While writing my own block,
I have a couple of typedefs which I store in a separate .h file and
include in the code for my block. What should I do to be able to
access these types from within python? I have tried including the .h
files in the swig .i files like

%{
#include “myblock.h”
#include “mytypedefs.h”
%}

But this doesn’t seem to help. Any pointer?

Karthik


#2

Explicitly adding the typedef definition to the .i file solved the
problem.

Karthik

On Sun, Oct 5, 2008 at 1:39 AM, Karthik Vijayraghavan