Re: Automatically Compiling IDL [message #5752] |
Fri, 16 February 1996 00:00  |
James Tappin
Messages: 54 Registered: December 1995
|
Member |
|
|
Justin Baker <justinb@bom.gov.au> wrote:
> I am trying to write a simple routine to automatically compile all of my
> IDL routines for a single application and then save the compiled result.
>
> I want to do this so that I can use an XDR format file
> instead of having to re-compile every routine each time I run my
> application.
>
> I have tried something like the following :
>
> pro compileall
> .compile myprint mydisplay mycalc mygui
> save, filename='myprog.dat', /routines
> end
>
> Unforunately, when I try and run "compileall", IDL doesn't understand
> the .compile command.
>
> Is it possible to do what I want from a procedure (or batch file), or do
> I have to do the above interactively ?
>
> Thanks in advance,
> Justin.
>
>
> --
> Justin Baker
> Bureau of Meteorology
> Melbourne
> Australia
> Email: justinb@bom.gov.au
A batch file will do the job you want. Just create a file with the list of
names each preceded by ".r" and the use @<filename>
--
+------------------------+---------------------------------- --+---------+
| James Tappin, | School of Physics & Space Research | O__ |
| sjt@star.sr.bham.ac.uk | University of Birmingham | -- \/` |
| Ph: 0121-414-6462. Fax: 0121-414-3722 | |
+----------------------------------------------------------- --+---------+
|
|
|