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

Home » Public Forums » archive » Re: MAKE_DLL for DLMs
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: MAKE_DLL for DLMs [message #42263] Fri, 21 January 2005 09:55 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Fri, 21 Jan 2005 08:03:45 -0500, Haje Korth wrote:

> JD,
> I usually write all my software for myself and never worry about network
> installation. Why does every user need to compile the dlm separately? Can't
> you compile it and throw it in the idl binary directory for everyone to use?
> The only other possibility I see is that the user uses make_dll in a local
> directory and they set ! dlm_path to point to it.

The main reason MAKE_DLL exists is to provide a platform-agnostic way
to compile C files into DLMs, which will work on most systems which
have a compiler, now or in the future. Distributing IDL code is
relatively easy: take care not to use indistinct names that will
clash, tell the user to drop the package in with their other IDL
packages, and off you go, with nary a care about updated IDL versions,
etc.

Distributing externally compiled binaries raises the bar considerably,
as you now have to contend with various OS/compiler/library/IDL
exported interface versioning issues. So, compiling once and throwing
it in with the IDL source just doesn't cut it. You can either have a
tedious Makefile that the user is required to run, or simply use
MAKE_DLL. This solution is almost perfect, except that the default
user-writable location for compiled libraries (in
~/.idl/idl_blah/compile_dir) isn't visible to IDL's DLM search, which
means you have to move it somewhere which is, which means you have to
make assumptions about write permissions. Not pretty.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Tracking Cursor in Object Graphics Draw Widgets
Next Topic: Reading ASCII files with mixed formatting

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

Current Time: Wed Oct 08 19:28:06 PDT 2025

Total time taken to generate the page: 0.00422 seconds