Opened 18 years ago

Last modified 18 years ago

#1083 closed defect (fixed)

Visual Studio 8 compilation issues

Reported by: szekerest@… Owned by: warmerdam
Priority: high Milestone:
Component: default Version: unspecified
Severity: critical Keywords:
Cc: thalos@…

Description

The following changes should be considered in order to compile GDAL with Visual
Studio 8 (2005)

1. /GX compiler option is deprecated in Visual C++ 2005 /EHsc should be used instead

2. CRT_SECURE_NO_DEPRECATE, CRT_NONSTDC_NO_DEPRECATE should be definied in
nmake.opt, like:

OPTFLAGS=	/nologo /MD /EHsc /Zi /D_CRT_SECURE_NO_DEPRECATE
/D_CRT_NONSTDC_NO_DEPRECATE /Fd$(GDAL_ROOT)\gdal.pdb

3. Compiler does not allow const_cast to down cast ie from const char* to char*
should be avoided. (only mitab_feature.cpp suffers from this problem)

Tamas

Attachments (1)

diff_mitab_feature.txt (1.6 KB ) - added by szekerest@… 18 years ago.
diff mitab_feature.cpp

Download all attachments as: .zip

Change History (3)

by szekerest@…, 18 years ago

Attachment: diff_mitab_feature.txt added

diff mitab_feature.cpp

comment:1 by warmerdam, 18 years ago

I have applied the /GX to /EHsc conversion and the addition of
the CRT macros (in cpl_port.h).  But mitab_feature.cpp has changed alot
from the version used for the patch here, and I can't see any reason
to apply the patch as it stands.  I suspect something else has already
been changed about the mode.  

Please reopen if you still have a problem against GDAL CVS, and thanks!

comment:2 by thalos@…, 18 years ago

*** Bug 1114 has been marked as a duplicate of this bug. ***
Note: See TracTickets for help on using tickets.