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 
Return to the default flat view Create a new topic Submit Reply
Linking C code [message #5155] Mon, 23 October 1995 00:00 Go to previous 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
[Message index]
 
Read Message
Read Message
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 17:34:38 PDT 2025

Total time taken to generate the page: 0.00456 seconds