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

Home » Public Forums » archive » Calling IDL from C language: sunmath problem.
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
Calling IDL from C language: sunmath problem. [message #8021] Fri, 31 January 1997 00:00 Go to next message
Alessandro Parisi is currently offline  Alessandro Parisi
Messages: 1
Registered: January 1997
Junior Member
Hi to everybody.

We have seen that the IDL callable functions, released with IDL package
(Ver. 4.0.1), allow to call IDL from a program written in C language
(routines are: IDL_ExecuteStr and IDL_Execute).

We have compiled the program with "gcc" and there are problems (at link
time) since the library "sunmath" is not found.

Questions:

1- Do we need exactly this library or we can arrange in same way to use
another library ?

2- Could somebody confirm that the gcc is OK for that ?

3- Do you know where to find other information about that ?
(possibly on the WEB)


By.

P.S.: we are not using "rpc" .
Re: Calling IDL from C language: sunmath problem. [message #8053 is a reply to message #8021] Wed, 05 February 1997 00:00 Go to previous messageGo to next message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Alessandro Parisi wrote:
>
> Hi to everybody.
>
> We have seen that the IDL callable functions, released with IDL package
> (Ver. 4.0.1), allow to call IDL from a program written in C language
> (routines are: IDL_ExecuteStr and IDL_Execute).
>
> We have compiled the program with "gcc" and there are problems (at link
> time) since the library "sunmath" is not found.
>

We had the very same problem when we first tried using gcc. We
need the "sunmath" library for the nint() function, so we
used the rint() function instead and casted the result. Follow
this example and try to replace any functions that require the
"sunmath" library.

We've been using gcc to create shared-object .so libraries that
are called from within IDL using CALL_EXTERNAL, with no problems.
This is the reverse of what you're doing, but I don't think there
would be any problems.

Dave

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2200
La Jolla, CA 92037
[ UCSD Mail Code 0949 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
Re: Calling IDL from C [message #45750 is a reply to message #8021] Fri, 07 October 2005 06:30 Go to previous messageGo to next message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Preahlad,
your description is far too vague for me to be able suggest anything. At
this point I would suggest to consider the external developers guide. If you
want help from the forum, you need to post the compile errors or describe
the problems you encountered in detail. Many things can go wrong with
writing external code.

Cheers,
Haje



"bujji" <prahlad.sarma@gmail.com> wrote in message
news:1128688859.855720.313200@g49g2000cwa.googlegroups.com.. .
> 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 #45887 is a reply to message #45750] Sun, 09 October 2005 22:30 Go to previous message
bujji is currently offline  bujji
Messages: 10
Registered: October 2005
Junior Member
Haje,
The error i faced when i compile the C code is as follows

-lxp

regards,
Prahlad V
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: CALL_EXTERNAL error when calling a C program
Next Topic: PDF manual on 6.1

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

Current Time: Wed Oct 08 13:53:13 PDT 2025

Total time taken to generate the page: 0.00612 seconds