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

Home » Public Forums » archive » Call_External and referenced symbol not found
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Call_External and referenced symbol not found [message #30583] Tue, 07 May 2002 11:00 Go to previous message
Todd David halter[1] is currently offline  Todd David halter[1]
Messages: 4
Registered: May 2002
Junior Member
I am working on a Sun SPARC Ultra-2 with OS 5.7 and IDL 5.4.
I am using call_external to call an external C function. I have made my
so file and can call my test functions within the so file just fine. The
problem comes when I try to call a function from my so that is located in
a .a file.

example:
37 long
38 zinit (int argc, void *argv[])
39 {
40 IDL_STRING processName;
41
42 FILE *fp;
43
44 processName = *(IDL_STRING *)argv[0];
45
46 fp = fopen ("zlog.debug", "a");
47 fprintf (fp, "processName = %s\n", processName.s);
48 fclose (fp);
49
50 /* Set up connections to zeb */
51 usy_init (); /* located in libZeb.a */
52
53 return (TRUE);
54 } /* end zinit (...) */

This function works fine until I add line 51. When I add this line I get
the
error (in IDL):

ld.so.1: /apps/base/rsi/idl_5.4/bin/bin.solaris2.sparc64/idl: fatal:
relocation error: file ../../bin/zlog.so: symbol usy_init: referenced
symbol not found
Killed

My IDL term crashes and I have to log out of the system.
Do I need to make libZeb.a into a so file?
Any help would be greatly appreciated.
Thanks.

Todd Halter, todd*DOT*halter*AT*pnl*DOT*gov
Pacific Northwest National Laboratory
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: CURVEFIT.PRO standard deviations?
Next Topic: Re: Returning C struct to IDL

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

Current Time: Wed Oct 08 15:52:40 PDT 2025

Total time taken to generate the page: 0.00346 seconds