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

Home » Public Forums » archive » Is System Dependent Compilation Possible?
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: Is System Dependent Compilation Possible? [message #6185 is a reply to message #6110] Mon, 29 April 1996 00:00 Go to previous messageGo to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Tim Patterson <tim@raptor.lpl.arizona.edu> wrote:
>
> I have a tool written in IDL/Fortran and C that needs to
> run on both Unix and VMS systems. I have a few system
> dependent IDL procedures that I use as wrappers for the
> CALL_EXTERNALS.
>
> What I would like to do is have a batch file, say
> compile.pro, which can be invoked with @compile.pro
> and will compile the correct version of wrappers
> depending upon the OS,
>
> Unfortunately, I can't seem to come up with anything
> that even approaches this.
>
> IF !version.os EQ 'vms' then .run vms_version.pro
>
> produces an error.
>

I have always wanted to use the .run executive command within
procedures. Seems strange that you can't. I tried using the
@routine.pro syntax but had problems.

You might find a work-around for this, but I would suggest
putting the system-dependent code inside your wrapper functions,
since that's more consistent with the purpose of using a
wrapper function in the first place. Or you might have a
"master" wrapper function that calls other "sub-" wrapper
functions according to the value of !VERSION.OS .

The second approach would have the same effect as your
previous attempt ... only the sub-wrapper that gets called would
be compiled.

Dave Foster
foster@bial1.ucsd.edu
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: quick testing of string variables
Next Topic: Colour buttons in an IDL widget...how?

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

Current Time: Tue Dec 02 10:25:34 PST 2025

Total time taken to generate the page: 0.00246 seconds