For Programmers: Free Programming Magazines  


Home > Archive > Fortran > January 2006 > Re: IBM fortran compiler error: 1516-036 (S) Entity *** has undefined









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: IBM fortran compiler error: 1516-036 (S) Entity *** has undefined
Brooks Moses

2006-01-22, 3:57 am

antonioparodi74@gmail.com wrote:
> Hello,
> I am trying to compile a fortran code with the xlf90 compiler using the
> following compilation flags
>
> -c -g -qnolm -qsuffix=f=f90:cpp=F90
>
> but I have encountered the following error
>
> 1516-036 (S) Entity hhe has undefined type
>
> Do you have any idea? Can it be due to a problem with the statements
> include or implicit none ?


This means exactly what it says: you are using a variable named "hhe"
somewhere in your code, but you have not declared it. The error message
should also tell you on what line this variable is first used.

Removing the "implicit none" statement will cause the compiler to
automatically treat the "hhe" variable as if it has been declared REAL.
This will of course cause the error message to go away. This is not
usually a good thing -- your bug is at least as likely to be that you've
accidentally types "hhe" where it should be "he", or something of that
sort. Or else you've forgotten to declare the type of "hhe" before
using it, and you should fix that.

- Brooks


--
The "bmoses-nospam" address is valid; no unmunging needed.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com