<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1491" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi All,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Just to let you know it's fixed. Turns out my dll
was fine, but I copied it to the right space (forgot gdal must sit in system
directory).</FONT></DIV>
<DIV><FONT face=Arial size=2>So conclusion: gdal can be compiled with the free
microsoft .net compiler, but it takes a lot of improvising, and you might not
get past the stage of the dll (it did not compile any executables).</FONT></DIV>
<DIV><FONT face=Arial size=2>I had to enable the linker flag in the
nmake.opt file:</FONT></DIV>
<DIV><FONT size=2>
<P>LINKER_FLAGS = /NODEFAULTLIB:LIBC </P></FONT></DIV>
<DIV><FONT face=Arial size=2>I also had to change a few filenames for the ecw
plugin (NCSEcwU.lib -> NCSEcw.lib), comment out a line NCSErrors.h (#include
<crtdbg.h>, which apparently is safe to get rid of), and remove the last
bit in tiffio.h (where it tries to make use of iostream, istream and ostream,
which are not supported by this .net version). So not very clean, but it does
work.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>--------------------------------------------------------------------------------<BR>From:
UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of
Jacob Delfos<BR>Sent: 10 March 2005 16:33<BR>To: <A
href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</A><BR>Subject:
Re: [UMN_MAPSERVER-USERS] compile error Gdal on .net SDK - iostream not
found</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>Craig,</DIV>
<DIV> </DIV>
<DIV>Thanks for the tip. Unfortunately it wasn't that simple. It seems in this
.net version, there is no support at all for iostream. Apparently they got rid
of it in .net 2005 (which I think is what I use).<BR>I resorted to a last
option, and commented those lines out. It did not complain about it.</DIV>
<DIV> </DIV>
<DIV>I got lots of other errors, though. The free .net compiler misses some
fundamental files (e.g. lib.exe), which means a lot of improvisation. In the
end, it created a gdal12.dll file. Unfortunately, the mrsid support did not work
(which was why I embarked on this in the first place). The rest did work.</DIV>
<DIV> </DIV>
<DIV>regards,</DIV>
<DIV> </DIV>
<DIV>Jacob</DIV>
<DIV> </DIV>
<DIV><BR>--------------------------------------------------------------------------------<BR>From:
Craig Miller [mailto:craig.miller@spatialminds.com] <BR>Sent: 10 March 2005
14:31<BR>To: 'Jacob Delfos'<BR>Subject: RE: [UMN_MAPSERVER-USERS] compile error
Gdal on .net SDK - iostream not found</DIV>
<DIV> </DIV>
<DIV><BR>In .NET 2003 they removed all the old .h headers, so just remove the .h
(e.g iostream.h becomes iostream) from the include files and add a “using
namespace std;” in your source code.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Another option is to install an STL libraty like STLport which should still
have support for old include files.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>--Craig</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR>--------------------------------------------------------------------------------</DIV>
<DIV> </DIV>
<DIV>From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On
Behalf Of Jacob Delfos<BR>Sent: Wednesday, March 09, 2005 10:02 PM<BR>To: <A
href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</A><BR>Subject:
[UMN_MAPSERVER-USERS] compile error Gdal on .net SDK - iostream not found</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Hi All,</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>I'm working really hard to try and get Gdal compiled on Windows XP, with
the microsoft .net SDK and the platform SDK for windows XP. Bear in mind, I'm
pretty ignorant in this.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>I'm running into the following error:</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>libtiff\tiffio.h(499) : fatal error C1083: Cannot open include file:
'iostream': No such file or directory</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>I'm no expert in C++, but I thought iostream was pretty fundamental. I've
googled the world, and all it left me was a headache. But I'm not giving up. Why
is iostream missing? What can I do to get it? I've tried substituting with the
Cygwin iostream.h (experts will probably crinch at this). Didn't work too well.
Anybody have any ideas?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Jacob</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>JACOB DELFOS<BR>SPATIAL INFORMATION ANALYST<BR>Maunsell Australia Pty
Ltd<BR>629 Newcastle Street, WA 6007<BR>PO Box 81, WA 6902<BR>Leederville
<BR>Western Australia<BR>ABN 20 093 846 925</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Tel + 61 8 9281 6185<BR>Fax + 61
8 9281 6297<BR><A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A></DIV>
<DIV> </DIV>
<DIV><BR></FONT> </DIV></BODY></HTML>