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

Home » Public Forums » archive » Pros & cons of methods 1) DLM and 2) Call_External of calling C from 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: Pros & cons of methods 1) DLM and 2) Call_External of calling C from IDL [message #93526 is a reply to message #93523] Thu, 11 August 2016 04:26 Go to previous messageGo to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
On Wednesday, August 10, 2016 at 2:20:25 PM UTC-4, neil.a...@gmail.com wrote:
> Mike,
>
> I did eventually get make_dll to create a dll file using the gcc compiler and the compile and link options:
>
> cc = 'gcc -fopenmp -c %C -o %O'
> ld = 'gcc -shared %O -o %L'
>
>
> However, is a *.dll file the same as a shared object *.so file?
>
> Putting the name of the *.dll file in as an argument to the call_external routine generates the error:
>
> % CALL_EXTERNAL: Error loading sharable executable.
> Symbol: mg_callex_total, File = mg_callex_total.dll
> ERROR_MOD_NOT_FOUND
>
> So any ideas how i should proceed now.
>
> many thanks,
> Neil

For dll you must export the routine so that it can be used. This is done with the module definition file. Not sure if make_dll takes care of it. I build my dlms in Visual Studio.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: cgcontour and cgcolorbar irregular levels
Next Topic: Code for network analyses

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

Current Time: Sun Oct 12 09:22:54 PDT 2025

Total time taken to generate the page: 1.84014 seconds