Re: Incorporating C code problem

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu, 23 Feb 2006 07:13:36 -0700 (MST)

Hello,

[1] The NCL FAQ includes a response by Mary Haley which, I think,
     answers your question.

     http://www.ncl.ucar.edu/Support/talk_archives/2005/0090.html

     The tedious part is creating the wrap function.

[2] For assorted reasons, it is *much* simpler to call fortran
     from NCL than C .... even though NCL is written in C.
     The WRAPIT utility which is distributed with NCL automatically
     generates the necessary wrap code and loads the appropriate libraries
     for a number of systems.

Good luck
D

On Thu, 23 Feb 2006, jerry wrote:

> Hi
>
> I have a C function(ex01.c) and i'd like to call from NCLĦA
> How am i to create the shared objectĦH
> Thank you!
>
> below is the content of ex01.c
>
> int getAns( int a ,int b )
> {
> int c;
> c = a * b;
> return(c);
> }

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Feb 23 2006 - 07:13:36 MST

This archive was generated by hypermail 2.2.0 : Thu Feb 23 2006 - 09:24:18 MST