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

Home » Public Forums » archive » Re: Procedure names must be lowercase on Linux for auto-compile?
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: Procedure names must be lowercase on Linux for auto-compile? [message #44061] Mon, 16 May 2005 07:19
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kenneth P. Bowman writes:

> Oh, of course, now that makes sense.

Well, I'm not sure it makes "sense". But it is the
way it works. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Procedure names must be lowercase on Linux for auto-compile? [message #44064 is a reply to message #44061] Mon, 16 May 2005 06:56 Go to previous message
wcramer is currently offline  wcramer
Messages: 9
Registered: February 2005
Junior Member
Thanks for confirming that!

I guess I'll just have to give in and change my usual naming convention
to accommodate this weird behavior.

Doug
Re: Procedure names must be lowercase on Linux for auto-compile? [message #44066 is a reply to message #44064] Mon, 16 May 2005 05:22 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <MPG.1cf1965c41b88279989a0c@news.frii.com>,
David Fanning <davidf@dfanning.com> wrote:

> Yes, I would expect that, but the test is this:
>
> IDL> test1234
>
> Does that work? (Starting in a fresh IDL session, of course.)
>
> Cheers,
>
> David

IDL> test1234
% Attempt to call undefined procedure/function: 'TEST1234'.
% Execution halted at: $MAIN$
IDL> .com test1234
% Compiled module: TEST1234.

Oh, of course, now that makes sense.

Ken
Re: Procedure names must be lowercase on Linux for auto-compile? [message #44068 is a reply to message #44066] Sun, 15 May 2005 17:25 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kenneth P. Bowman writes:

> But he said he is using OS X, which is case insensitive.
>
> This works fine for me on OS X
>
> IDL> .r test1234
> % Compiled module: TEST1234.
>
> where the file is named "TEST1234.pro".

Yes, I would expect that, but the test is this:

IDL> test1234

Does that work? (Starting in a fresh IDL session, of course.)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Procedure names must be lowercase on Linux for auto-compile? [message #44070 is a reply to message #44068] Sun, 15 May 2005 15:45 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <MPG.1cf08d0facf7b7ab989a0b@news.frii.com>,
David Fanning <davidf@dfanning.com> wrote:

> Kenneth P. Bowman writes:
>
>> That said, I don't understand why IDL won't find your file.
>
> Well, because *automatically* it *always* looks for
> lowercase file names. :-)

But he said he is using OS X, which is case insensitive.

This works fine for me on OS X

IDL> .r test1234
% Compiled module: TEST1234.

where the file is named "TEST1234.pro".

Ken
Re: Procedure names must be lowercase on Linux for auto-compile? [message #44076 is a reply to message #44070] Sat, 14 May 2005 22:33 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kenneth P. Bowman writes:

> That said, I don't understand why IDL won't find your file.

Well, because *automatically* it *always* looks for
lowercase file names. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Procedure names must be lowercase on Linux for auto-compile? [message #44077 is a reply to message #44076] Sat, 14 May 2005 14:08 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <1116083122.600805.48450@g47g2000cwa.googlegroups.com>,
"wcramer" <wcramer@fit.edu> wrote:

> I was running into problems with auto-compilation of procedures and
> narrowed down the source of the problem to the filename/procedure name.
> I have two functions that are identical except for the filename and
> procedure name (one is isScalar, the other is is_scalar). The filenames
> match the function name and both files are located in the same
> directory, but only is_scalar will auto-compile when referenced.
>
> Am I correct in my diagnosis of the problem? Is this documented
> anywhere? Does this have something to do with the fact that I'm running
> on Linux (MAC OS X)?

FWIW, OS X is based on FreeBSD, not Linux.

Mac HFS+ filesystems under OS X 10.3 are case preserving, but not case
sensitive. OS X 10.4 offers the option of creating case-sensitive
filesystems.

Different operating systems have different rules for handling case, so
it is always a good idea to use only lower case for file names. That
makes it a lot easier to move IDL source files.

That said, I don't understand why IDL won't find your file.

Ken Bowman
Re: Procedure names must be lowercase on Linux for auto-compile? [message #44078 is a reply to message #44077] Sat, 14 May 2005 08:53 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
wcramer writes:

> I was running into problems with auto-compilation of procedures and
> narrowed down the source of the problem to the filename/procedure name.
> I have two functions that are identical except for the filename and
> procedure name (one is isScalar, the other is is_scalar). The filenames
> match the function name and both files are located in the same
> directory, but only is_scalar will auto-compile when referenced.
>
> Am I correct in my diagnosis of the problem? Is this documented
> anywhere? Does this have something to do with the fact that I'm running
> on Linux (MAC OS X)?

You are correct in your diagnosis. I'm sure it is
documented *somewhere*. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Using write_csv_data
Next Topic: alias in idl

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

Current Time: Fri Oct 10 11:39:32 PDT 2025

Total time taken to generate the page: 1.04036 seconds