| Re: Using Callable IDL with added system routines from C++ (or C) [message #17286] |
Fri, 01 October 1999 00:00 |
Nigel Wade
Messages: 286 Registered: March 1998
|
Senior Member |
|
|
Jean-Francois PIOLLE wrote:
>
> Hi all,
>
> I have some functions, written in IDL, using some system routines
> (written in C)
> through DLM.
> When running these functions in IDL interactive mode, everything is OK.
>
> But when calling these IDL functions from a C++ program (using
> IDL_strExecute),
> the process fails (syntax error) when encountering a call to a system
> routine in
> IDL code.
>
> Has anybody any idea of what I should do? (my IDL_DLM_PATH variable is
> correctly set)
>
> T'x
>
> Jean-Francois Piolle
> --
It's certainly possible to do what you are attempting. The syntax error
usually means IDL has failed to locate or load the DLM.
Is it possible to simplify the problem so that you have a very simple
program where the IDL_ExecuteStr calls the external routine (in the DLM)
directly?
This may make it much easier to identify where the problem is.
One possiblity is licencing. I have found that if IDL is running in demo
mode (LM_LICENSE_FILE not set correctly) then DLMs don't work.
--
-----------------------------------------------------------
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555
|
|
|
|