|
Re: function/procedure not found?? [message #71854 is a reply to message #71853] |
Thu, 22 July 2010 18:06  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Matt Francis writes:
> I'm getting a strange error to do with compiling and paths (I'm still
> getting my head around how IDL deals with this). See the following
> command and error messages. I'm running this on a UNIX system.
>
> IDL> print,gnss_get_utc_date()
> % Compiled module: GNSS_GET_UTC_DATE.
> % Attempt to call undefined procedure/function: 'GNSS_GET_UTC_DATE'.
> % Execution halted at: $MAIN$
>
> I had added the directory of the function gnss_get_utc_date.pro into
> the !PATH variable by the command
>
> !Path = !Path + ':<path to the function>'
>
> and as you can see, IDL does find this function and happily compiles
> it, then turns around and says it can't be found?? Can anyone suggest
> what might be going wrong here?
You could get this kind of error if you wrote the module
as a function and tried to call it as a procedure, or visa
versa.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|