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 
Return to the default flat view Create a new topic Submit Reply
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 previous 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 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
[Message index]
 
Read Message
Read Message
Read Message
Read Message
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: Fri Oct 10 17:57:19 PDT 2025

Total time taken to generate the page: 1.92324 seconds