From: Harvey.Davies@csiro.au To: bacon@aerodyne.com, hdfnews@ncsa.uiuc.edu Subject: RE: HDF4 under Cygwin Date: Thu, 15 Aug 2002 07:17:27 +1000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain > -----Original Message----- > From: Fred Bacon [SMTP:bacon@aerodyne.com] > Sent: Thursday, August 15, 2002 12:31 AM > To: hdfnews@ncsa.uiuc.edu > Subject: HDF4 under Cygwin > > Has anyone ever tried to build or use HDF 4.x on a Windows machine running > > cygwin? We have some software, originally developed for Unix, which we've > > ported to Windows via cygwin. We want to add the capability to save data > in an HDF file, but that means getting HDF to work under cygwin as well. > If anyone has already done this, I'd be interested in a set of patches. > > Fred Bacon > Aerodyne Research, Inc. > I have both * used the standard windows binaries under cygwin * compiled & used hdf4 under cygwin It all works OK. I found I needed to copy the HDF .dll files into the same directory as the .exe file, otherwise dynamic loading had problems. The main thing you need to be careful about in makefiles is that windows compilers & linkers need file paths in windows form (e.g. "C:\mydir\prog.c" rather than "/c/mydir/proc.c"). You can use the cygwin utility "windows_path" to automate this name conversion. Harvey Davies, CSIRO Atmospheric Research, Private Bag No. 1, Aspendale 3195 E-mail: harvey.davies@csiro.au Phone: +61 3 9239 4556 Fax: +61 3 9239 4444