Home »
Public Forums »
archive »
Re: Using C++ programs with IDL
Re: Using C++ programs with IDL [message #3329] |
Mon, 12 December 1994 20:01 |
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)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
|
|
|
Current Time: Thu Oct 09 15:58:23 PDT 2025
Total time taken to generate the page: 0.24091 seconds