comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Linking C code
items: Re: Linking C code

Linking C code
type: item
description: 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
creator: adam
date: 1995-10-23T07:00:00-00:00

Re: Linking C code
type: item
description: > 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)
creator: William Lupton
date: 1995-10-27T07:00:00-00:00