Re: dynamic linking on Mac [message #76557] |
Wed, 15 June 2011 09:52  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 6/15/11 10:04 AM, brodzik@nsidc.org wrote:
> David, thanks for the !MAKE_DLL tip--I would have ignored that myself,
> because I always
> think of DLLs as a windows-only thing. It got my compilation working,
> and I'm (partially)
> off and running. Now I can access the state data and the init method
> from the C level of
> things, but IDL seg faults when I call the method that is the meat of
> the C code--the
> forward/reverse transform.
>
> I found information about Ronn Kling's book "Calling C and C++ from
> IDL"--I'm thinking
> of buying it. Can anyone give a short review?
Ronn's book is great resource for learning to write a DLM. In
particular, for all the examples of passing different types of
parameters into C, i.e., arrays, scalars, strings, etc. as positional
parameters or keywords. Explanation is clear and concise. All the code
comes along with it on a CD. I keep this by my desk and refer to it
regularly.
Also, check out the External Development Guide (in the IDL distribution
at help/pdf/edg.pdf). It covers many different techniques, DLMs are
covered heavily since they are the most complicated.
Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL, A Guide to Learning IDL: http://modernidl.idldev.com
Research Mathematician
Tech-X Corporation
|
|
|