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

Home » Public Forums » archive » Some MAKE_DLL questions
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: Some MAKE_DLL questions [message #92141 is a reply to message #92137] Mon, 19 October 2015 09:58 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 10/19/15 7:30 AM, nata wrote:
> Hi guys,
>
> I've never created a sharable library from C code to be used by IDL
with CALL_EXTERNAL.
> I was wondering if it would be possible to create some parallel code
using C + OpenMP and then generate de DLL. I don't know if this is
possible since the documentation says:
> "Not every possible option supported by the C compiler or system
linker is addressed, only those commonly needed by IDL-related C code."

You can pass flags to the EXTRA_CFLAGS and EXTRA_LFLAGS keywords. I've
not used OpenMP, are there just special flags to use? You will also have
to make sure MAKE_DLL is set to use the correct compiler.

> I have some more questions related to the DLLs:
> - Are they platform independent? Can they be used in Mac, Win, Linux?

Absolutely not. But use the PLATFORM_EXTENSION keyword with MAKE_DLL (or
just use the correct string in the name) to make many shared objects,
each one valid and named for a particular platform. IDL will use the
correct one.

> - How is the memory managed? Are the variables copied to a different block?

I'm not sure what you mean.

> Thank you for all your help and clarifications,
> Nata
>


--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Read ENVI file
Next Topic: "% Unable to allocate memory" when using histogram.

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

Current Time: Wed Oct 08 16:07:26 PDT 2025

Total time taken to generate the page: 0.00367 seconds