Error in IDL [message #78010] |
Fri, 21 October 2011 09:37  |
shaheda shahi
Messages: 7 Registered: October 2011
|
Junior Member |
|
|
Hi,
I get the error in running the program as "Attempt to call
undefined procedure/function".
So, I have added the path of the program to the default path using '!
path'. Even it gives the same error. I tried 'resolve_all' command
also. It says that '
% Compiled module: RESOLVE_ALL.
% Attempt to call undefined procedure/function: 'DEFAULT'.
% Error occurred at: RESOLVE_ALL_BODY 290 /usr/local/itt/idl71/lib/
resolve_all.pro
% RESOLVE_ALL 351 /usr/local/itt/idl71/lib/
resolve_all.pro
% $MAIN$
% Execution halted at: $MAIN$
So, what can I do in this case? Should I need to add the default
routine in the library?
Please help me out.
Thank you.
-Shaheda
|
|
|
|
|
Re: Error in IDL [message #78080 is a reply to message #78010] |
Mon, 24 October 2011 09:38   |
shaheda shahi
Messages: 7 Registered: October 2011
|
Junior Member |
|
|
On Oct 24, 8:23 pm, David Fanning <n...@dfanning.com> wrote:
> shaheda shahi writes:
>> The program calls for a function.
>> This program is already run many times in another
>> account. I created a new account and I am using it.
>> It was running even in the new account after
>> me adding the '!path". Now, this is also not helping.
>
> Then I would say the file is not on your IDL path,
> despite your attempt to put it there. You would
> not be the first person to set an IDL path up
> incorrectly. :-)
>
> When you can locate the file with FILE_WHICH, then
> you will know it is on your IDL path.
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Hi David Fanning,
I have tried getting the path from 'file_which' also.
It prints blank space????
-Shaheda
|
|
|
|
|
|
Re: Error in IDL [message #78119 is a reply to message #78078] |
Thu, 27 October 2011 05:05  |
shaheda shahi
Messages: 7 Registered: October 2011
|
Junior Member |
|
|
On Oct 24, 1:26 pm, David Fanning <n...@dfanning.com> wrote:
> shaheda shahi writes:
>> I have tried getting the path from 'file_which' also.
>> It prints blank space????
>
> If you wanted to see a list of the directories that are on
> your IDL path, you can type this:
>
> IDL> Print, Transpose(StrSplit(!Path, $
> Path_Sep(/search_path),/Extract))
>
> Is the directory that contains this program file on that
> list?
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Dear David Fanning,
The problem is solved.
I use to run IDL in linux. First, I usually run SSW then IDL.
Now attempted to run as SSWIDL. The program works..:-P
Simple mistake.
SSW batch and SSWIDL batch will be different?? I should check
that now.
Thank you.
-Shaheda
|
|
|