comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: compilation strangeness
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: compilation strangeness [message #80827] Fri, 13 July 2012 12:54 Go to previous message
Stewart Allen is currently offline  Stewart Allen
Messages: 3
Registered: May 2010
Junior Member
Ah, I've been using compile_opt IDL2 on all new code for a while now, but this code was written quick and on the fly and I omitted it... Adding it fixes the issue.

Lesson learned: compile_opt IDL2 is ALWAYS a good idea.

Thanks,
Stewart

On Thursday, 12 July 2012 17:03:06 UTC-7, Stewart Allen wrote:
> Hi,
>
> I am experiencing a strange compilation bug that I can't explain.
>
> I have a procedure 'timeseries' (inside timeseries.pro) that calls a function 'stats' (inside stats.pro). Both files are in my IDL path (although different directories). However, IDL doesn't automatically find and compile stats when I try to compile timeseries:
>
> IDL> print,file_which('stats.pro')
> % Compiled module: FILE_WHICH.
> /home/scrallen/idl_scripts/sim_code/stats.pro
> IDL> .compile timeseries
>
> calcstats = stats(rim,sim,arrival=1,tol=(run_no ge 7?0.01:1))
> ^
> % Syntax error.
> At: /home/data/BH/timeseries.pro, Line 41
> % 1 Compilation error(s) in module TS.
> IDL> .compile stats
> % Compiled module: STATS.
> IDL> .compile timeseries
> % Compiled module: TIMESERIES.
>
> As you can see, I'm forced to explicitly compile stats, even though I'm fairly sure IDL ought to find it and automatically compile it with timeseries.
>
> Can anyone explain what's going on? And what am I doing wrong?
>
> Cheers,
> Stewart
[Message index]
 
Read Message
Read Message
Previous Topic: Array Integration
Next Topic: read a coordinates of atmospheric air masses for plotting later on a map

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 18:57:04 PDT 2025

Total time taken to generate the page: 2.47894 seconds