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

Home » Public Forums » archive » Re: gcc and idl
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: gcc and idl [message #7384 is a reply to message #7373] Wed, 06 November 1996 00:00 Go to previous message
David Fenyes is currently offline  David Fenyes
Messages: 10
Registered: November 1996
Junior Member
Karl Young <karl@gojira.berkeley.edu> writes:

>
> I am trying to call a C++ routine that I want to compile with
> gcc on a Sparc running SunOS 4.1.3 and call from IDL with
> CALL_EXTERNAL. The flags used for the compile and link calls given in
> the IDL manual examples for the SunOS cc compiler are very different
> from the ones I need to use with gcc so I'm apparently not building the
> right kind of shared object file (i.e. I'm getting messages like:
> ld.so: Undefined symbol: ___11spin_systemi)
>
> Has anyone done this sucessfully (i.e. used IDL with gcc) and if
> so any suggestions, e.g. what flags to use for the compile and
> link steps ? Thanks for any tips,
>
> -- KY

I interface to the LAPACK library via a C wrapper.

Compiling with GCC, you should use:

CFLAGS=-fpic
LDFLAGS=-G

for Sun CC:
CFLAGS=-Kpic
LDFLAGS=-G

That's using GCC 2.7.2 and Sparcworks C 4.0

Good luck,

David.
--
David Fenyes University of Texas Medical School
dave@msrad71.med.uth.tmc.edu Dept. of Radiology
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Viewing unsigned int images (was: 16 bit / 8 bit depth colors on the mac)
Next Topic: Is there a replacement for STEPWISE in 4.0x?

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

Current Time: Fri Oct 10 14:34:33 PDT 2025

Total time taken to generate the page: 0.72111 seconds