X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 20 May 2008 05:33 PM by  anon
"Variable is undefined" for a compiled function
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
20 May 2008 05:33 PM
    I'm having an issue: I've written a series of procedures and functions in IDL that I'd like to use in ENVI. They all work nicely in IDL, and I've saved them with (save, /routines) and put them in the ENVI save-add folder. I open ENVI and check all the compiled functions/procedures, and indeed, my programs are all present and accounted for. However, when I run the scripts, one of my compiled functions (named "exclude") always breaks and I get the error: % Variable is undefined: EXCLUDE. I've rechecked my compiled functions, and exclude is still there. I can even run it at the ENVI command prompt just fine, just not at runtime. Any suggestions/help?

    Deleted User



    New Member


    Posts:
    New Member


    --
    20 May 2008 06:10 PM
    Well, I was able to fix the problem by calling exclude.pro with all caps ("EXCLUDE") in my wrapper. But I still don't really understand why I need to do that. It is four levels deep, (Procedure 1 calls Procedure 2 calls Procedure 3 which calls Exclude function), but all the other procedures and the other function do not need to be called with all capital letters....
    You are not authorized to post a reply.