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

Home » Public Forums » archive » Re: .compile vs .run
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: .compile vs .run [message #43512 is a reply to message #43510] Mon, 18 April 2005 02:13 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
m_schellens wrote:
> I have the following file 't.pro':
>
> pro t1
> print,'t1'
> end
>
> pro t
> print,'t'
> end
>
> pro t3
> print,'t3'
> end
>
>
> IDL 6.1 gives:
>
> IDL> .comp t
> % Compiled module: T1.
> % Compiled module: T.
> % Compiled module: T3.
> IDL> .run t
> % Compiled module: T1.
> % Compiled module: T.
> % Compiled module: T3.
>
> Isn't .run supposed to EXECUTE the main program?
> What is the difference between .compile and .run?
> Or what am I missing?

You missed a missing main program. Thats all procedures. A main program
does not start with a pro statement. If t should be your main program
put it at the end.

print,'t'
end

cheers
Reimar

> IDL 6.1

>
> marc
>


--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: "?" help-command in linux
Next Topic: IDL - ENVI batch mode question

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

Current Time: Fri Oct 10 05:05:37 PDT 2025

Total time taken to generate the page: 0.80048 seconds