Re: wrapit and cygwin updates?

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu Dec 29 2011 - 10:27:28 MST

Hi Joseph,

Unfortunately I haven't done anything with this. I keep meaning to see if there's some kind of documentation on creating shared objects with Cygwin.

You don't *have* to use WRAPIT to created shared objects. WRAPIT just removes all the intermediate steps of creating the *.so.

In general, the intermediate steps are:

 1. Create the wrapper C file:

      wrapit77 < your_fortran_file.f > WRAPIT.c

 2. Compile the Fortran file:

    gfortran -fPIC -v -c -fno-second-underscore your_fortran_file.f

 3. Compile the wrapper C file:

    gcc -c -fno-common -I$NCARG_ROOT/include WRAPIT.c

4. Create the *.so file:

    gcc -bundle -flat_namespace -undefined suppress WRAPIT.o your_fortran_file.o -o whatever.so -lgfortran

The #4 step is the one that's the problem. The above step is for a MacOSX system. For Cygwin system, maybe this will help:

http://cygwin.com/ml/cygwin/2004-11/msg00149.html

Good luck,

--Mary

On Dec 22, 2011, at 1:13 PM, Joseph Jakuta wrote:

> I was reading through the back entries of the group and saw that in 2005 there were plans to update WRAPIT for cygwin. I was wondering if that ever happened?
>
> If it has not, I was wondering if anyone found other solutions to getting fortran functions to run in NCL if you are using cygwin since you can’t simply open a shared object file?
>
> Thanks,
>
> Joseph Jakuta
> Environmental Associate
> OTC / MANE-VU
> 202.508.3839
> 444 North Capitol Street NW #638
> Washington, DC 20001
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Dec 29 10:27:41 2011

This archive was generated by hypermail 2.1.8 : Wed Jan 04 2012 - 10:18:09 MST