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

Home » Public Forums » archive » Re: Windows IDL DLM with Cygwin
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: Windows IDL DLM with Cygwin [message #44706] Tue, 12 July 2005 15:06 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
joey@swri.edu wrote:
> Ok, thanks to all who have replied. I believe I got the answer I needed in
> that "using a Cygwin compiled DLL is impossible with IDL".

The techtip reported by Haje

http://www.rsinc.com/services/techtip.asp?ttid=3798

shows that it *is* possible to use Cygwin-compiled DLLs with IDL, via
CALL_EXTERNAL. I don't see any mention of the -mno-cygwin switch in the
techtip, so it looks like these are true Cygwin DLLs.

Of course DLMs are another matter, but this techtip suggests that maybe
you should persist.

A note for those who are completely mystified by this thread:

Cygwin (http://sources.redhat.com/cygwin/) is a Unix-emulation system
for Windows. The Cygwin package includes a myriad of different tools,
one of which is the GCC compiler system, includes the C compiler, gcc.
Normally an executable produced by gcc will require the Cygwin DLL at
run time. It is this DLL that provides the Unix API functions. It is
also possible to use Cygwin's gcc to produce an executable that doesn't
require the Cygwin DLL. The command-line switch to accomplish this is
"-mno-cygwin".

Mingw (http://mingw.sourceforge.net/index.shtml) is a port of the Gnu
tools to Windows that doesn't rely on a separate run-time DLL. It does
not emulate Unix, so porting Unix software to Mingw is harder than
porting it to Cygwin. (The latter is often trivial.) An executable
produced by Mingw's gcc will look very much like one produced by
Cygwin's gcc with -mno-cygwin. In fact Cygwin bundles its own version of
the Mingw headers and import libraries to achieve its "-mno-cygwin"
functionality.

--
Mark Hadfield "Kei puwaha te tai nei, Hoea tahi tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: BAR_PLOT restricted to 60 element ARRAY??
Next Topic: collecting data files

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

Current Time: Sat Oct 11 01:56:20 PDT 2025

Total time taken to generate the page: 1.20020 seconds