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

Home » Public Forums » archive » Call_External on SGI (IRIX6.3)
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
Call_External on SGI (IRIX6.3) [message #16394] Thu, 22 July 1999 00:00
Richard Tyc is currently offline  Richard Tyc
Messages: 69
Registered: June 1999
Member
I am having trouble with getting a simple example to work on our SGI O2
with IRIX 6.3. We are using IDL 5.2

I am trying the simple example on pg 108 of the external development
guide

I have compiled example.c using gcc

gcc -fpic -c example.c
Note: the book indicates using option -fsingle - what is this ? it is
not part of gcc

I then create the shared object using ld

ld -shared -n32 -o example.so example.o
Note: -assert pure-text is not valid - what is this ?

When I try to run this in IDL as indicated on the bottom of pg 108, I
get

IDL> s =
call_external('example.so','_sum_array',x,n_elements(x),/f_v alue)
% CALL_EXTERNAL: Error loading sharable executable.
Symbol: _sum_array, File = example.so
5050:/usr/local/rsi/idl_5.2/bin/bin.sgi/idlde: rld:
Fatal Error: cannot successfully map soname 'example.so' under any of
the filenames
./example.so:/usr/local/rsi/idl_5.2/bin/bin.sgi/example.so:/ usr/lib/example.so:/usr/local/rvplayer5.0/example.so:/lib/ex ample.so:/lib/cmplrs/cc/example.so:/usr/lib/cmplrs/cc/exampl e.so:

% Execution halted at: $MAIN$

I have tried putting example.so in one of the directories listed
(/usr/lib) with no help.
Is there a problem with using n32 code (I can't link using the older
o32)

I have also tried using 'sum_array' instaed to no avail.

Any ideas

Rich
  • Attachment: richt.vcf
    (Size: 0.29KB, Downloaded 69 times)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: The Book
Next Topic: Re: tiles-rus 7149

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

Current Time: Sat Oct 11 14:01:06 PDT 2025

Total time taken to generate the page: 1.04158 seconds