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

Home » Public Forums » archive » Re: how did this happen?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: how did this happen? [message #35420] Fri, 13 June 2003 22:46
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"Tapuosi Lotoaniu" <lotoaniu@atmos.ucla.edu> wrote in message
news:Pine.SOL.3.95.1030613160624.25063A-100000@cloud...
> I was using 'vi' to add some comments at the top of the code and
> somehow I must have commented out a line in the actual code! I'm
> a novice with vi.

Chorus:

Son, you'll be a [vi novice] and that's the way to stay
Son, you'll be a [vi novice] until your dying day.

--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
Re: how did this happen? [message #35422 is a reply to message #35420] Fri, 13 June 2003 19:25 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Tapuosi Lotoaniu writes:

> Anyway I have a real question: Say within prog1.pro I call r2.pro and r3.pro,
> r2.pro is compiled at run time but I get an error for r3.pro.
> The error saying that it can't find the file r3.pro. I go back and compile
> r3.pro then run prog1.pro again I don't get this error. All three routines
> are in the same directory so why do I get an this error?

Most often this is because the files are named incorrectly.
The *LAST* module in the file should have the same name
as the command you want to use. Here is an article that
describes the situation in detail:

http://www.dfanning.com/tips/namefiles.html

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: how did this happen? [message #35424 is a reply to message #35422] Fri, 13 June 2003 16:23 Go to previous message
Tapuosi Lotoaniu is currently offline  Tapuosi Lotoaniu
Messages: 9
Registered: June 2003
Junior Member
Hi David,

I was using 'vi' to add some comments at the top of the code and
somehow I must have commented out a line in the actual code! I'm a novice
with vi.

Anyway I have a real question: Say within prog1.pro I call r2.pro and r3.pro,
r2.pro is compiled at run time but I get an error for r3.pro.
The error saying that it can't find the file r3.pro. I go back and compile
r3.pro then run prog1.pro again I don't get this error. All three routines
are in the same directory so why do I get an this error?

Thanks

On Thu, 12 Jun 2003, David Fanning wrote:

> Tapuosi Lotoaniu writes:
>
>> One minute after posting the below question, I figured
>> out the problem!
>
> Well, of course, but after all that build up aren't
> you going to give us the answer? :-)
>
> Cheers,
>
> David
> --
> David W. Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Phone: 970-221-0438, E-mail: david@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155
>
>
Re: how did this happen? [message #35431 is a reply to message #35424] Thu, 12 June 2003 21:59 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Tapuosi Lotoaniu writes:

> One minute after posting the below question, I figured
> out the problem!

Well, of course, but after all that build up aren't
you going to give us the answer? :-)

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: how did this happen? [message #35433 is a reply to message #35431] Thu, 12 June 2003 21:05 Go to previous message
Tapuosi Lotoaniu is currently offline  Tapuosi Lotoaniu
Messages: 9
Registered: June 2003
Junior Member
One minute after posting the below question, I figured
out the problem!

On Thu, 12 Jun 2003, Tapuosi Lotoaniu wrote:

> Hi,
>
> My data processing GUI has decided to stop working and I can't figure out
> why? The main program is called CRRES_WIDGET. Within this program are a
> number of event handlers. When I run it now I get this error:
>
>> pro CRRES_WIDGET
>> ^
>> % Procedure header must appear first and only once: CRRES_WIDGET
>> At: /private/crres/MANUALCRRES/CRRES_WIDGET.pro, Line 567
>> % 1 Compilation errors in module $MAIN$.
>
> I know what this error means but I have not altered the routines. So
> how do you get an error like this if you have not changed anything?
>
> Thanks.
>
>
>
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Installing IDL 5.3 under Windows
Next Topic: Gamma Variate Curve Fitting

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

Current Time: Wed Oct 08 20:02:23 PDT 2025

Total time taken to generate the page: 0.06585 seconds