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

Home » Public Forums » archive » .lib C routines in IDL
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: .lib C routines in IDL [message #55302 is a reply to message #55283] Thu, 16 August 2007 01:57 Go to previous message
sc.bugger is currently offline  sc.bugger
Messages: 2
Registered: August 2007
Junior Member
Hello Patrizia

You first have to create a shared library. Under *nix, that will look
like this:
# gcc -fPIC -shared -o libmylibrary.so myCcode.c
Then, you'll be able to call some functions in yor .so library from
IDL, e.g.:
IDL> result = call_external('path_to_the_library.so','function_name',
p1,p2,p3, ... ,/f_value)
A shorter and better answer is: browse attentively in your IDL Help
for 'call_external' or concretise your concern.

Vlad
[Message index]
 
Read Message
Read Message
Previous Topic: Adjusting Trackball Radius
Next Topic: Re: waiting for IDL7.0

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

Current Time: Fri Oct 10 01:18:17 PDT 2025

Total time taken to generate the page: 0.64172 seconds