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

Home » Public Forums » archive » Re: again call_external
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: again call_external [message #38822] Thu, 01 April 2004 09:01 Go to previous message
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
"Valerio Pace" <valerio.pace@fastwebnet.it> wrote in message
news:c4hau0$r4m$1@lacerta.tiscalinet.it...
> Hi all,
>
> I have some big problem to learn how to use the CALL_EXTERNAL function.
> (OS=windows, IDL 5.5)
> I have created my C procedure but I'm not able to call it.
> I try to use MAKE_DLL in this way:
>
> MAKE_DLL, 'myprocedure', 'myprocedure'
>
> but IDL "writes":
> "\Documents" is not an internal or external command, or an exe or batch
> file.
>
> What's my mistake?

This may have been a problem with older versions of IDL. The problem was
dealing with file paths containing space characters. You can upgrade to a
newer version, probably 6.0. Or, try using the COMPILE_DIRECTORY keyword on
MAKE_DLL to change your build directory name so that there are no spaces in
it. Yet another way is to specify NOCLEANUP and then edit the batch file to
add quotes around filenames and run the batch file manually. I'm not
positive that these kwds are in 5.5 though.

> How can I understand if IDL "see" my C compiler (Visual C++ 6.0)?

When you install the Visual C++ compiler, you are prompted for the option of
adding the compiler environment variables to your environment when you login
to Windows. If you said yes, IDL should find your compiler.

If you said no, or don't remember, then try make_dll, after solving the
above problem about spaces in filenames. If you get an error message about
not finding the 'cl' command, you'll need to modify your system environment
variables.

First, locate the batch file that sets the environment variables so that you
can run the Visual C++ compiler from the command line. On my system, it is
C:\msdev\VC98\Bin\VCVARS32.BAT. Open it up and see that it sets the INCLUDE
and LIB env vars and adds the compiler dirs to the PATH.

Now find the applet for changing your environment variables in the Windows
System control panel. Add/modify the environment variables according to the
batch file. After you do this, the batch file generated by IDL to compile y
our files should be able to locate the compiler.

Karl
[Message index]
 
Read Message
Read Message
Previous Topic: again call_external
Next Topic: Re: CDF vs HDF

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

Current Time: Wed Oct 08 18:18:49 PDT 2025

Total time taken to generate the page: 0.00471 seconds