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

Home » Public Forums » archive » g++ with IDL call_external
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
g++ with IDL call_external [message #45868] Mon, 10 October 2005 12:27
Denis Barkats is currently offline  Denis Barkats
Messages: 4
Registered: October 2005
Junior Member
Hi, I've been trying to use call_external from within IDL to call a
piece of code that I compiled with g++ instead of gcc. Here is the
exemple.

i have a file simple.c:

#include <stdio.h>
#include <stdlib.h>

int Simple() {
return 13;
}

Using gcc I do
-gcc -c simple.c
-gcc -bundle -flat_namespace -o simple.so simple.o
which creates the sharable librairie simple.so which I can call from
IDL as
-print,call_external('/Users/denis/idl/bicep/simple.so','Sim ple',
/unload)
13

So everything is fine.
However, now if I use g++

g++ -c simple.c
g++ -bundle -flat_namespace -o simple.so simple.o
print,call_external('/Users/denis/idl/bicep/simple.so','Simp le',
/unload)
% CALL_EXTERNAL: Error loading sharable executable.
Symbol: Simple, File =
/Users/denis/idl/bicep/simple.so
symbol not found
it does not seem to work.

DO any of you g++ users have any idea ?
Thanks
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Stackplot without axis?
Next Topic: open and read a file

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

Current Time: Sat Oct 11 06:03:57 PDT 2025

Total time taken to generate the page: 0.67171 seconds