|
From: Fergus, P. <P.F...@lj...> - 2009-02-17 13:45:34
|
Dear All,
I am trying to use a header file for a dll I want to use in Java. Based on the tutorial I have simple made a reference to the header file in the interface file - here is the interface file.
%module example
%{
/* Includes the header in the wrapper code */ #include "xsenscmt.h"
%}
/* Parse the header file to generate wrappers */ %include "xsenscmt.h"
The header file can be found at http://www.tocaloshi.co.uk/code/xsenscmt.h (it was too big to post to this forum). This header file is provided by XSENS - a motion capturing product.
I use the following command line and I get the following errors:
C:\Users\tocaloshi\Documents\JNIProjects\XSENS_JNI_DLL\CMT Example Dll>swig -jav a xsenscmt.i
xsenscmt.h(367): Error: CPP #error ""Platform not supported"". Use the -cpperras warn option to continue swig processing.
xsenscmt.h(382): Error: CPP #error ""Platform not supported"". Use the -cpperras warn option to continue swig processing.
xsenscmt.h(403): Error: CPP #error ""Platform not supported"". Use the -cpperras warn option to continue swig processing.
xsenscmt.h(427): Error: CPP #error ""Platform not supported"". Use the -cpperras warn option to continue swig processing.
xsenscmt.h(454): Error: CPP #error ""Platform not supported"". Use the -cpperras warn option to continue swig processing.
xsenscmt.h(484): Error: CPP #error ""Platform not supported"". Use the -cpperras warn option to continue swig processing.
Could anyone see if they can swig the attached header file.
My platform is Windows Vista Home Premium.
Thank you in advance for your time and effort.
Kind Regards,
Paul
P.S. Would I have the same problem if I used Windows XP to swig the file?
|