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

Home » Public Forums » archive » How to link IDL files
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: How to link IDL files [message #14775 is a reply to message #14679] Wed, 24 March 1999 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Phil Aldis (philaldis@geocities.com) covers just about all
the ground here, but I want to make one or two niggling
points. He writes:

> .................and save it as HelloWorld.pro (somewhere in
> your search path), then when at the prompt you type
> IDL> HelloWorld

In fact, you should probably save this file as "helloworld.pro"
(all lowercase letters) and *ESPECIALLY* if you are on a UNIX
system, in which filenames are case sensitive. When IDL goes
looking for a file:

IDL> JunK_It

It doesn't care how you spelled the command on the command
line, but it does always look for *lowercase* file names.

I would also encourage you to NOT put spaces in file names,
although it is allowed on some operating systems. It will
make your code less portable and I find it causes problems
even on those operating systems that supposedly support it.

And to just make this absolutely crystal clear, the program
module that has the same name as the file should be the
LAST program module in the file. If it is not, you will
NEVER get automatic compilation (which has got to be one
of the best features of IDL) to work correctly. There
should really never be any reason at all to hand compile
programs before they are used if your files are structured
and named correctly.

Cheers,

David

P.S. If Vu Khac Tri is a student, I still have several
cheap copies of my book hanging about. :-)

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 3D imaging/rotation
Next Topic: Can't position modal compound widget (such as cw_form)

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

Current Time: Wed Oct 08 17:28:36 PDT 2025

Total time taken to generate the page: 0.00482 seconds