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

Home » Public Forums » archive » Re: Help on including files
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: Help on including files [message #14998] Tue, 13 April 1999 00:00
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
a_li_ba_ba@my-dejanews.com wrote:

> Hi,
>
> I am working trying to include a header files inside my code. My IDLDE
> preference working directory and search path is set to default. Then I added
> path to !PATH at the top of my source file like this where header.pro is in e:
> \files\src:
>
> !PATH = !PATH + "; e:\files\src"
> @header.pro
>
> I then compile and it complains that header.pro can't be found. Then after
> running it once and returning on error, I recompile and it works this time
> because the !PATH variable is setup correctly now. I am wondering if anyone
> has any solution to this so that I can simply compile and run with no error on
> the 1st try (without changing the IDLDE preference). Please let me know.
>
> Thanx!
> Albert
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own

I am not using the extension .pro
to be compatible to unix systems you should write @header ;
because line end on windows is 10b13b.
If you don't use (space ; ) the unix looks at @header^M.

R.Bauer
Re: Help on including files [message #15019 is a reply to message #14998] Mon, 12 April 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
a_li_ba_ba@my-dejanews.com (a_li_ba_ba@my-dejanews.com) writes:

> I am working trying to include a header files inside my code. My IDLDE
> preference working directory and search path is set to default. Then I added
> path to !PATH at the top of my source file like this where header.pro is in e:
> \files\src:
>
> !PATH = !PATH + "; e:\files\src"
> @header.pro
>
> I then compile and it complains that header.pro can't be found.

This is your problem. You are trying to compile the file
that has this in it. What you want to do with these two
commands is run them as if you were typing them at the
IDL command line. In other words, you want them in a batch
file.

I would put the !Path line in an IDL startup file. Then
you could include the @header file in any procedure and
it would work perfectly. (If you want it to run quickly,
put it at the start of the path and not at the end.)

Cheers,

David

--
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: medivision file reader
Next Topic: Re: Problems with JULDAY and CALDAT (aka Y1.584K bug)

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

Current Time: Wed Oct 08 19:21:19 PDT 2025

Total time taken to generate the page: 0.00622 seconds