Re: WRAPIT error

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri May 17 2013 - 06:06:48 MDT

There is a conflict between the C code used to create
the wrapper. Try

C NCLFORTSTART
       subroutine clustr ( x, d, dev, b, f, e, ni, j, n, nz, k )
       integer b(ni)
       integer e(k)
       double precision d(k,j)
       double precision f(ni)
       double precision dev(k)
       double precision x(ni,j)
C NCLEND
       i = ni

On 5/17/13 1:26 AM, Prince K XAVIER wrote:
> All,
>
> I am trying to do a WRAPIT on the attached code, but it fails with :
>
> WRAPIT Version: 120209
> WRAPIT.c: In function ‘clustr_W’:
> WRAPIT.c:29:7: error: conflicting types for ‘i’
> WRAPIT.c:22:6: note: previous declaration of ‘i’ was here
> COMPILING kmeans_cluster.f
> LINKING
> gcc: error: WRAPIT.o: No such file or directory
> rm: cannot remove `WRAPIT.o': No such file or directory
> END WRAPIT
>
> These are not really very useful error messages, but if anyone has a clue
> on what I am doing wrong that will be useful to know. I'm using gfortran
> and NCL 6.1.2.
>
> Thanks in advance,
> Prince
>
>
>
> _______________________________________________
> 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 Fri May 17 06:06:55 2013

This archive was generated by hypermail 2.1.8 : Thu May 30 2013 - 11:38:10 MDT