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

Home » Public Forums » archive » CALL_EXTERNAL Problems with 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: CALL_EXTERNAL Problems with IDL [message #40408 is a reply to message #40305] Thu, 05 August 2004 10:24 Go to previous messageGo to previous message
MajorSetback is currently offline  MajorSetback
Messages: 9
Registered: August 2004
Junior Member
Bob <jipnoji@janet-reno.com> wrote in message news:<LR3Qc.26314$iK.3208@newsread2.news.atl.earthlink.net>...
> I use gcc to compile my source files

I use g++ with extern "C" before the functions I want to be callable
(to stop the name mangling)

> and than I usually use ld to build a shared library.

Yes. I'm kind of new to shared libraries and to IDL but I use
$ ld *.o -shared -o Whatever.so

I tried making an archive file with
$ ar -vr libWhatever.a NewObjectFile.o
$ ranlib libWhatever.a
$ ld libWhatever.a -shared -o Whatever.so

but then Call_External gave me:
Whatever.so: ELF file's phentsize not the expected size

whatever that means.

Thanks,
Peter.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL on Windows vs. Unix, debugging consideration
Next Topic: Reading MATLAB (*.mat) files

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

Current Time: Sun Nov 30 07:49:20 PST 2025

Total time taken to generate the page: 2.07787 seconds