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
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
Re: CALL_EXTERNAL ERROR [message #28831] Tue, 15 January 2002 19:52
Mark Rivers is currently offline  Mark Rivers
Messages: 49
Registered: February 2000
Member
Francesco Belletti <guenhwyvar@libero.it> wrote in message
news:e7b4ed30.0201150811.38bb0e0@posting.google.com...
> Hello,
> I've tried to run some C code under IDL, using CALL_EXTERNAL function.
> Following the instuctions of idl manual I've built my shared library:
>
> cc -I my-idl-path/external -c -Kpic mylib.c
> cc -G -o mylib.so mylib.c
>
> When I've tried to run my code I get some strange errors:
>
> IDL> temp = call_external('mylib.so', 'myfunc')
> % CALL_EXTERNAL: Error loading sharable executable.
> Symbol: myfunc, File = mylib.so
> ld.so.1:
> /opt/rsi/idl_5.4/bin/bin.solaris2.sparc64/idl:
> fatal: /export/home/users/belletti/lib/mylib.so:
> wrong
> ELF class: ELFCLASS32
> % Execution halted at: $MAIN$

A colleague of mine had the same problem last week. I think the problem is
that IDL 5.5 has two versions for Solaris, a 32-bit version and a 64-bit
version. I think you are running the wrong version for the .so file you
have created. Try executing
> idl -32
to run the 32-bit version and see if that works.

Mark Rivers
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: HDF-EOS Sinusoidal Grid
Next Topic: Errata corrige: CALL_EXTERNAL ERROR

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

Current Time: Wed Oct 08 14:32:45 PDT 2025

Total time taken to generate the page: 0.00521 seconds