I am a newbee in Julia. I want to call a c function in Julia, but I have a 
problem.
In C:
function1:

   myType com1(int a, int b)
   {
        do some operator;
        return myType;
   }

"myType" is a struct type that I define

function2:

   void draw(myType a)
  {
      do some operator 
      return ;
  }

In Julia 
ccall( (:com1, "pathToLib"), ReturnedType, (Int32, Int32),a ,b)
but "ReturnedType" should responsed to "myType", but julia do not have the 
type, what should I do? and how to pass the return value to function2?

Reply via email to