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

Home » Public Forums » archive » Linking C code
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
Linking C code [message #5155] Mon, 23 October 1995 00:00 Go to next message
adam is currently offline  adam
Messages: 1
Registered: October 1995
Junior Member
I'm running IDL Version 4.0.1 on SunOS 4.1.4.


I'm attempting to link a Fortran routine into IDL code, however I get
undefined symbol errors at runtime.

I also tried to implement the provided examples with the following
results:


lucky{adam}: make_callext_demo test_ftn_only
f77 -c -pic ftn_only_sun.f ftn_strarr_sun.f
ftn_only_sun.f:
ftn_only:
ftn_only1:
idl_2_fort:
fort_2_idl:
ftn_strarr_sun.f:
str_arr:
str_arr1:
idl_2_fort:
fort_2_idl:
ld -o ftn_only.so ftn_only_sun.o /usr/local/lang/SC3.0.1/lib/libF77.a
/usr/local/lang/SC3.0.1/lib/libm.a
ld -o ftn_strarr.so ftn_strarr_sun.o
/usr/local/lang/SC3.0.1/lib/libF77.a /usr/local/lang/SC3.0.1/lib/libm.a
echo ftn_only | /usr/local/rsi/idl_4/bin/idl | more
IDL. Version 4.0.1 (sunos sparc).
Copyright 1989-1995, Research Systems, Inc.
All rights reserved. Unauthorized reproduction prohibited.
Installation number: 8083-0.
Licensed for use by: UPMC PET Facility

ld.so: Undefined symbol: _ir_fp_class_



lucky{adam}: make_callext_demo test_c2fort
acc -c -pic -fsingle -DSPARC simple_c2f.c
f77 -c -pic simple_c2f1.f
simple_c2f1.f:
simple_c2f1:
ld -o simple_c2f.so simple_c2f.o simple_c2f1.o
/usr/local/lang/SC3.0.1/lib/libF77.a /usr/local/lang/SC3.0.1/lib/libm.a
echo simple_c2f | /usr/local/rsi/idl_4/bin/idl | more
IDL. Version 4.0.1 (sunos sparc).
Copyright 1989-1995, Research Systems, Inc.
All rights reserved. Unauthorized reproduction prohibited.
Installation number: 8083-0.
Licensed for use by: UPMC PET Facility

ld.so: Undefined symbol: ___ansi_fflush






Any help or suggestions anyone culd provide would be appreciated.



Adam Thomas
(412) 647-0707
adam@pet.upmc.edu
PET Facility
University of Pittsburgh Medical Center
Pittsburgh, PA
Re: Linking C code [message #5235 is a reply to message #5155] Fri, 27 October 1995 00:00 Go to previous message
William Lupton is currently offline  William Lupton
Messages: 1
Registered: October 1995
Junior Member
> I'm attempting to link a Fortran routine into IDL code, however I get
> undefined symbol errors at runtime.

_ir_fp_class_ is defined in libsunmath.a
___ansi_fflush is defined in libansi.a

I don't know about everyone else, but we seem to have had a lot of problems
since switching to SC3.0.1...

William

----------------- William Lupton (wlupton@keck.hawaii.edu) -----------------
Home: PO Box 7135, Work: W. M. Keck Observatory, PO Box 220,
Kamuela, HI 96743, USA Kamuela, HI 96743, USA
(808) 885 3475 (808) 885 7887, (808) 885 4464 (fax)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Functions calling functions
Next Topic: Re: Why does IDL strip unary dimensions from structure elements?

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

Current Time: Wed Oct 08 15:53:05 PDT 2025

Total time taken to generate the page: 0.00512 seconds