Re: warning #266: function declared implicitly
- From: emammendes@xxxxxxxxx
- Date: 29 Jan 2006 13:23:46 -0800
Hello
My sincere apologies. A bit of info: icc is the C compiler and ifort
is the fortran counterpart.
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);
That is all!
Btw, it works just fine. Better than that, it is a mex that can be
called within matlab!
Many thanks
Ed
Richard Maine wrote:
> <emammendes@xxxxxxxxx> wrote:
>
> > I am calling fortran from my a c program. Although an executbale is
> > created the compiler returns
> >
> > warning #266: function declared implicitly
> >
> > How can I get rid of this warning message?
>
> In addition to the other Rich's comments (both the humorous one and the
> elaboration), I suspect that this message is from the C compiler
> complaining about the C code. Inthat case, this would be a C question
> instead of a Fortran one. The C compiler won't know or care that it is a
> Fortran function. Do whatever you'd do in C anyway.
>
> It would not surprise me at all if you also had other problems than just
> this warning, but you haven't given enough information even about this
> warning, much less about the other problems that I can see only through
> my crystal ball. There are more possible issues than I could possibly
> elaborate on in one posting. Since avoiding this warning message is
> among the simplest related things, it leaves me suspicious that some of
> the other issues are also there, but not yet showing.
>
> Of course, I'm just guessing that it is a messsage from the C compiler,
> because your question didn't even specify that much, just saying "the"
> compiler, when two of them are involved.
>
> --
> Richard Maine | Good judgement comes from experience;
> email: last name at domain . net | experience comes from bad judgement.
> domain: summertriangle | -- Mark Twain
.
- Follow-Ups:
- Re: warning #266: function declared implicitly
- From: James Van Buskirk
- Re: warning #266: function declared implicitly
- References:
- warning #266: function declared implicitly
- From: emammendes
- Re: warning #266: function declared implicitly
- From: Richard Maine
- 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):