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

Home » Public Forums » archive » Problem addressing arrays from C routines running OSF
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: Problem addressing arrays from C routines running OSF [message #5738 is a reply to message #5657] Thu, 01 February 1996 00:00 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
Stubbe Faurschou Hviid <stubbe@fys.ku.dk> writes:

(stuff deleted)

> This method of addressing an array works under Solaris, SGI Irix
> and Windows
> but not under OSF/1 on a DEC alpha workstation.

> I think that the problem is that IDL tries to send a 32 bit
> pointer, and the
> C program expects a 64 bit pointer ( a good way to create chaos
> :-) )

I have successfully used CALL_EXTERNAL to C programs with IDL 3.6 under OSF/1.
I don't know enough about C programming to tell you why your program didn't
work, but you can find some examples in

http://sohowww.nascom.nasa.gov/softops/cds/external/

(You can also ftp to sohoftp.nascom.nasa.gov and look in the directory
/softops/cds/external.)

Maybe the problem is in the way you compile the routine. You'll notice that I
have different Makefiles for OSF and SunOS.

Bill Thompson
[Message index]
 
Read Message
Read Message
Previous Topic: BUG IN C_CORRELATE
Next Topic: Re: Job Offer: Dept. of Planetary Sciences, Univ. of Arizona

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

Current Time: Sat Oct 11 10:22:53 PDT 2025

Total time taken to generate the page: 0.95871 seconds