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 #44713 is a reply to message #44710] Tue, 12 July 2005 05:51 Go to previous messageGo to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Joey, this is the article I was talking about. Haje



Topic:

Some Windows developers choose to use the Cygwin GCC port as their
compiler. This TechTip describes how to set up IDL so that CALL_EXTERNAL
works with GCC.

Discussion:


Several customers have reported success using CALL_EXTERNAL with
Cygwin's GCC Windows port instead of Microsoft Visual Studio.

a.. Create a new user environment variable (Control Panel ->
System -> Advanced -> Environment Variables) called IDL_DLM_PATH.
Set this to: C:\RSI\IDL61\bin\bin.x86;c:\cygwin\bin

b.. Set the following parameters on !MAKE_DLL:
1.. !make_dll.LD = 'c:\cygwin\bin\ld.exe -shared -o %L %O %X'
2.. !make_dll.CC = 'c:\cygwin\bin\gcc.exe
%X -fPIC -I"/cygdrive/c/RSI/IDL61/external/include" -c -D_REENTRANT %C -o
%O'
3.. !make_dll.COMPILER_NAME='GCC'
c.. To test, load and compile the STRING_ARRAY.PRO example in the
IDL61\external\call_external\C subdirectory.
IDL> string_array, 'Hello, Cygwin!', /VERBOSE

Calling string_array with:

STRARR_L STRING = 'Hello, Cygwin!'

Hello, Cygwin!

Result from string_array is:

RESULT STRING = 'Hello, Cygwin!'

If the PATH environment does not also include c:\cygwin\bin, users may
receive an error message that cygwin1.dll could not be found.




<joeymu@gmail.com> wrote in message
news:1121121297.794813.114820@o13g2000cwo.googlegroups.com.. .
> Has anyone sucessfully used a DLM created with the Cygwin family of
> compilers? I have sucessfully compiled a DLM and it looks like it
> should work, but when it gets to the point of actually using the DLM,
> IDL will crash! I've been trying to compile my code with a
> -mno-cygwin, but that is going to be a lot of work! I'm hoping there
> is an easier way. Anyway, I'd love to hear even if this is possible
> (i.e. someone has actually done it) so I don't just spin my wheels.
>
> Thanks!
>
> Joey
>
[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 06:26:29 PDT 2025

Total time taken to generate the page: 0.78719 seconds