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

Home » Public Forums » archive » Re: Using C++ programs with IDL
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
Re: Using C++ programs with IDL [message #3329] Mon, 12 December 1994 20:01
braendle is currently offline  braendle
Messages: 5
Registered: May 1994
Junior Member
In article <3c7ct9$gu4@babbage.ece.uc.edu> santha@uchep10.phy.uc.edu (Attanagoda Santha) writes:
> From: santha@uchep10.phy.uc.edu (Attanagoda Santha)
> Subject: Using C++ programs with IDL
> Date: 8 Dec 1994 16:40:09 GMT

> Hello,
> I am trying to use a program written in C++ from within IDL on a sparc
> station 10 runing SuNOS 4.1.3. I am using CALL_EXTERNAL function to do so.
> When I try I get the error message, "ld.so object could not be mapped".

<stuff deleted>

Hello !

The C++ compiler renames your function by encoding the type of the return
value and the types of all parameters. You either find a way to call the
function from IDL with the proper name or use a C++ keyword (modifier) with
the function definition to disable the C++ "name mangling" or use plain C.

(With MS-C++ the modifier is __CDECL (stands for C-declaration))

hope this helps,
Gerhard

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
Gerhard Braendle EMAIL: braendle@vms.biochem.mpg.de
EDV-Gruppe PHONE: ++49-89-8578-3730
Max-Planck-Institut fuer Psychiatrie FAX: -2227
Am Klopferspitz 18a
82152 Planegg-Martinsried (Germany)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Signal Processing with IDL
Next Topic: Re: Array variable in extended memory - IDL

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

Current Time: Wed Oct 08 19:19:47 PDT 2025

Total time taken to generate the page: 0.00517 seconds