Calling IDL from C [message #45751] |
Fri, 07 October 2005 05:40  |
bujji
Messages: 10 Registered: October 2005
|
Junior Member |
|
|
Dear All,
I am trying to call the some IDL routines from C, but any how i do not
get sucess.
I am using red hat Linux 9.0 , and my IDL version is 6.1. I am trying
to run the example calltest.c program that is given in
IDL_6.1/external/callable/calltest.c.
Can any body tell me the exact steps for runing this program on RedHat
Linux.
With Regards
Prahlad Sarma.
|
|
|
|
|
|
Re: Calling IDL from C [message #45885 is a reply to message #45751] |
Mon, 10 October 2005 04:38   |
James Kuyper
Messages: 425 Registered: March 2000
|
Senior Member |
|
|
bujji wrote:
> Haje,
> The error i faced when i compile the C code is as follows
>
> -lxp
That's a very uninformative error message. I strongly suspect that
you're misinterpreting something, and that the actual error message is
a lot longer than the one you've shown. Please provide the following:
a) The actual text of the code that you can't compile. It would help a
lot if you simplify the code as much as it can be simplified, while
still producing the error message. Repeatedly cut out parts of the
code, and re-compile it, to verify that it still produces the error
message. This is primarily for our benefit, but you might also find
that it helps you figure out for yourself where the actual problem is.
b) Attempt to compile the code, and show us all of the text associated
with that compilation attempt. If you're using a command line
interface, issue the command that attempts to compile the code, and
show us all of the text from that command line to the bottom of your
screen.
|
|
|
Re: Calling IDL from C [message #68701 is a reply to message #45751] |
Tue, 17 November 2009 15:09  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
Alexander Jesser wrote:
> Hello,
> I am not an expert in IDL, but may be somebody can give me answers to
> my questions. Is it possible to generate a DLL (dynamic link library)
> from the IDL code? Further, is it possible to call IDL within C code?
> If yes, how can I do this?
I'm not sure what you mean by "from the IDL code". If you mean can IDL
pro code be compiled into a DLL, the answer is no. But, the MAKE_DLL
routine will compile C code into a DLL.
It is possible to call IDL from within C code. The interface is called
Callable IDL. It is in the "All topics" tab of the online help under IDL
Programmers' Guides > External Development Guide > Part III: Techniques
that use IDL's Internal API > Callable IDL.
--
www.michaelgalloy.com
Research Mathematician
Tech-X Corporation
|
|
|