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

Home » Public Forums » archive » Question on call_external
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Question on call_external [message #48963] Wed, 07 June 2006 02:00
alban is currently offline  alban
Messages: 5
Registered: November 2005
Junior Member
Hi all,

I am using call_external to call several C function from IDL.
Everything has just worked fine so far, and I am very pleased with the
results. I installed in a local folder the FFTW library -several tests
I made gave that a complex-valued 1D FFT was quite faster than IDL's-
and would like to use it.

Compiling and linking like I had always done -Linux machine-

gcc -o *.so *.c -shared -lm -I*/fftw*/include/ -O3

seems to work fine. But when using the library in an IDL function I get
the following message

% Compiled module: GET_FILE_NAMES.
% Compiled module: READ_MOTION.
% CALL_EXTERNAL: Error loading sharable executable.
Symbol: call_owh, File = */*.so
*/*.so: undefined symbol: fftw_malloc
% Execution halted at: I_PRO_TR 103 */*.pro
% $MAIN$

which is a clear indicator something is not working when linking the
fftw library, since IDL is unable to find just the functions included
in this library. Performing a two-step generation like the following
yields good results.

gcc -c */*.c -O3 -fPIC
ld *.o -shared -o *.so

It is evident I do not quite know precisely what I am doing, even if it
happens to work fine. Could anyone put a light into my darkness?
Many thanx.

Marc
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: identify the pixel location of a specific value
Next Topic: End Statement Syntax Problem

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

Current Time: Thu Oct 09 21:05:11 PDT 2025

Total time taken to generate the page: 1.75899 seconds