Re: C code wrapper

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Sep 27 2011 - 15:13:13 MDT

Hi Jimmy,

Unfortunately you can't use WRAPIT on a C code directly to create the wrapper file.

However, you can use "wrapit77" on a Fortran stub file that represents the same calling sequence as your C file, and with
a few modifications to the wrapper, you will have the wrapper you need, rather than writing it from scratch.

You will also have to compile the the two C codes to create the *.so file yourself, but again, you can use WRAPIT to tell you
what commands to use.

I've created a detailed example, using a simple C subroutine and function. Please see:


On Sep 26, 2011, at 3:06 PM, James Correia wrote:

> NCLers-
> I have a C code source package that I want to wrap into NCL. I found the reference manual that has the "explanation".
> Am I correct that I have to write the wrapper which does the necessary checking on the type and size of the dimensions
> AND do the same for all subsequent subroutine calls?
> jimmyc
> --
> James Correia Jr.
> OU CIMMS Research Associate
> SPC HWT Liaison
> "The highest function of the teacher consists not so much in imparting knowledge as in stimulating the pupil in its love and pursuit. To know how to suggest is the art of teaching."
> ------------------------------------------------------------------------------------------
> The views expressed in this email do not necessarily reflect those of NOAA, the National Weather Service, or the University of Oklahoma.
> ------------------------------------------------------------------------------------------
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Tue Sep 27 15:13:20 2011

This archive was generated by hypermail 2.1.8 : Tue Sep 27 2011 - 15:14:38 MDT