From: Fergus, P. <P.F...@lj...> - 2009-01-31 13:41:06
|
Hello All, This is the first time I have used SWIG and I am having a problem getting the tutorial to work http://www.swig.org/tutorial.html. My OS is Windows Vista, which from the website says is compatible with the latest version of SWIG. I have created the interface file: /* example.i */ %module example %{ /* Put header files here or function declarations like below */ extern double My_variable; extern int fact(int n); extern int my_mod(int x, int y); extern char *get_time(); %} extern double My_variable; extern int fact(int n); extern int my_mod(int x, int y); extern char *get_time(); I then run the following command: swig -java example.i I then get an error message as follows: example.i(1): Error: Syntax error in input(1). I am probably doing something stupid here. Could anyone advice me on how I may be able to solve this problem. Kind Regards, Paul |