Re: warning #266: function declared implicitly
- From: "James Van Buskirk" <not_valid@xxxxxxxxxxx>
- Date: Sun, 29 Jan 2006 15:02:57 -0700
<emammendes@xxxxxxxxx> wrote in message
news:1138569826.356730.140980@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Fortran:
> subroutine calnpr(nsuby,nsubu,ny,nu,ne,L,nall)
> integer nyu,nyue,ia,i,j
> integer ny(nsuby,nsuby),nu(nsuby,nsubu),ne(nsuby,nsuby)
> integer L(nsuby), nall(nsuby)
> C:
> calnpr_(&nsuby,&nsubu,ny,nu,ne,degree,nall);
I would have given the C compiler a prototype like:
/* File: my_Fortran_stuff.h */
#ifndef _MY_FORTRAN_STUFF_
#define _MY_FORTRAN_STUFF_
void calnpr_(int* nsuby, int* nsubu, int* ny, int* nu, int* ne,
int* L, int* nall);
#endif
/* End of file: my_Fortran_stuff.h */
And then somewhere near the top of your C file you could have
a line such as:
#include "my_Fortran_stuff.h"
--
write(*,*) transfer((/17.392111325966148d0,6.5794487871554595D-85, &
6.0134700243160014d-154/),(/'x'/)); end
.
- References:
- warning #266: function declared implicitly
- From: emammendes
- Re: warning #266: function declared implicitly
- From: Richard Maine
- Re: warning #266: function declared implicitly
- From: emammendes
- warning #266: function declared implicitly
- Prev by Date: Re: warning #266: function declared implicitly
- Next by Date: Re: warning #266: function declared implicitly
- Previous by thread: Re: warning #266: function declared implicitly
- Next by thread: Re: warning #266: function declared implicitly
- Index(es):
Relevant Pages
|
|