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

Home » Public Forums » archive » Re: CALL_EXTERNAL error when calling a C program
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: CALL_EXTERNAL error when calling a C program [message #45867 is a reply to message #45858] Mon, 10 October 2005 13:02 Go to previous message
Denis Barkats is currently offline  Denis Barkats
Messages: 4
Registered: October 2005
Junior Member
Here is what I do and it works on my mac.
i have a file simple.c:

#include <stdio.h>
#include <stdlib.h>

int Simple() {
return 13;
}

Using gcc I do
-gcc -c simple.c
-gcc -bundle -flat_namespace -o simple.so simple.o
which creates the sharable librairie simple.so which I can call from
IDL as
-print,call_external('/Users/denis/idl/bicep/simple.so','Sim ple',
/unload)
13


sometimes IDL is a pain so restart it.
good luck
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Asynchronous reading
Next Topic: group leader for iTools

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

Current Time: Wed Oct 08 19:29:59 PDT 2025

Total time taken to generate the page: 0.00268 seconds