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

Home » Public Forums » archive » CALL_EXTERNAL simple 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
CALL_EXTERNAL simple problem ? [message #27926] Wed, 14 November 2001 04:41 Go to previous message
the_cacc is currently offline  the_cacc
Messages: 104
Registered: October 2001
Senior Member
Hi,

OK - I've finally bitten the bullet and am calling C from IDL. So far,
it hurts a lot. I have the following simple code which gives a seg.
fault and I'm really hoping someone can help !

C code
------
void test(float f[])
{
f[0]=0.0;
}


IDL code
--------
PRO test
f=[1.0,1.0]
s=call_external('image.so','test',f)
PRINT,f
END



The C code compiles alright using the same flags as in the
CALL_EXTERNAL examples, which incidentaly work fine. I'm using IDL5.4
under Linux on Alpha.

Thanks,
Ciao.
[Message index]
 
Read Message
Read Message
Previous Topic: Problems with CHISQR_PDF when moving from IDL 5.2 to 5.4
Next Topic: Problem with gaussfit in IDL/v5.5

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

Current Time: Wed Oct 08 14:52:52 PDT 2025

Total time taken to generate the page: 0.00448 seconds