Hi
My code is as follows :-
example.h

#include"iostream.h"
using namespace std;
typedef int MYINT;
void sum(MYINT a, MYINT b);

example.cpp
#include"example.h"
void sum(MYINT a, MYINT b)
{
   MYINT c;
   c=a +b;
   cout<<c;
}

example.i
%module example
%{
     #include"example.h"
     extern void sum(MYINT a, MYINT b);
    %}

#include "example.h"
extern void sum(MYINT a,MYINT b);



example.rb

require "example.so"
MYINT a=10;
MYINT b=20;
Example.sum(a,b);

But it is giving me error undefined MYINT when i'm trying to compile
> this
> Kindly help
-- 
Posted via http://www.ruby-forum.com/.