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

Home » Public Forums » archive » C++ in 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: C++ in IDL [message #44204 is a reply to message #29423] Mon, 30 May 2005 23:37 Go to previous messageGo to previous message
Antonio Santiago is currently offline  Antonio Santiago
Messages: 201
Registered: February 2004
Senior Member
Tim-Oliver Husser wrote:
> Hi,
>
> this is my first posting here, so let me just say hello. :-)
>
> I've got some small problem with IDL 6.0 and it would give me great
> pleasure, if someone could help me with that.
> There is some heavy computation I have to do within IDL (running a
> genetic algorithm, so it's really pure number crunching) and I was
> thinking about porting that algorithm to C/C++ to call it via
> call_external. I assume, that the code would be much faster in C/C++,
> wouldn't it?
> Now my problem: I do not really want to use ANSI C (I never ever want
> to use malloc again), and anyway C++ is my favorite programming
> language. But I cannot compile C++ code with make_dll and my
> experience in Linux programming is not that good (I'm just a windows
> programmer), so I do not know, how to compile the C++ code correctly.
> I tried something like this:
>
> g++ -fPIC -I"path/to/idl/includes" -L"path/to/idl/libs" -lidl
> -D_REENTRANT test.cpp
>
> But there seem to be missing a lot of libraries. I think that I can
> figure out by myself, which libraries I have to link to, but I do not
> really want to do this, before I know for sure, that it is really
> possible to call C++ libraries with IDL. I just don't want to do some
> useless work...
> All the C++ code is enclosed in an 'extern "C" { }', so that should
> not be a problem I think.
> Has anyone ever tried to do something like this and could help me?
>
> thx,
> Tim-Oliver

Hi I don't know almost anything using call_external and make_dll, right
now I only try to modify an example on using WIDGET_STUB and extending
IDL widgets.

What libraries seems to missing you? Perhaps you don't have installed
correctly g++. What distribution do you use? depends on it, the
necessary packages can differ. For example you can have installed the
libraries to execute c++ programs but not have installed the headers to
compile c++ programs.

Bye.
--
-----------------------------------------------------
Antonio Santiago P�rez
( email: santiago<<at>>grahi.upc.edu )
( www: http://www.grahi.upc.edu/santiago )
( www: http://asantiago.blogsite.org )
-----------------------------------------------------
GRAHI - Grup de Recerca Aplicada en Hidrometeorologia
Universitat Polit�cnica de Catalunya
-----------------------------------------------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Job announcement
Next Topic: Re: LIDAR .las format

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

Current Time: Fri Oct 10 08:58:37 PDT 2025

Total time taken to generate the page: 0.80471 seconds