Opened 13 years ago

Closed 13 years ago

#2850 closed defect (fixed)

GDAL ECW driver requires to define _WIN32_WINNT=0x0500 with MSVC2008

Reported by: tamas Owned by: tamas
Priority: normal Milestone: 1.6.1
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

Without defining _WIN32_WINNT=0x0500 the VC2008 compiler generates the following errors:

cl /nologo /MD /EHsc /Ox /W3 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_N O_DEPRECATE /DNDEBUG -IE:\builds\gdal\port -IE:\builds\gdal\ogr -IE:\builds\gdal \gcore -IE:\builds\gdal\alg -IE:\builds\gdal\ogr\ogrsf_frmts -IE:\builds\libecw j2-3.3_VC9\include -IE:\builds\libecwj2-3.3_VC9/Source/include /D_MBCS /D_UNICO DE /DUNICODE /D_WINDOWS /DLIBECWJ2 /DWIN32 /D_WINDLL -DFRMT_ecw -DNO_X86_MMI -D OGR_ENABLED /c ecwdataset.cpp ecwdataset.cpp e:\builds\libecwj2-3.3_vc9\source\include\NCSJPCBuffer.h(51) : error C2059: synt ax error : '<L_TYPE_raw>' e:\builds\libecwj2-3.3_vc9\source\include\NCSJPCBuffer.h(51) : error C2238: unex pected token(s) preceding ';' e:\builds\libecwj2-3.3_vc9\source\include\NCSJPCBuffer.h(53) : error C2059: synt ax error : '<L_TYPE_raw>' e:\builds\libecwj2-3.3_vc9\source\include\NCSJPCBuffer.h(53) : error C2238: unex pected token(s) preceding ';' e:\builds\libecwj2-3.3_vc9\source\include\NCSJPCBuffer.h(55) : error C2059: synt ax error : '<L_TYPE_raw>' e:\builds\libecwj2-3.3_vc9\source\include\NCSJPCBuffer.h(55) : error C2238: unex pected token(s) preceding ';' e:\builds\libecwj2-3.3_vc9\source\include\NCSJPCBuffer.h(64) : error C2059: synt ax error : '<L_TYPE_raw>' e:\builds\libecwj2-3.3_vc9\source\include\NCSJPCBuffer.h(64) : error C2238: unex pected token(s) preceding ';' e:\builds\libecwj2-3.3_vc9\source\include\NCSJPCBuffer.h(66) : error C2059: synt ax error : '<L_TYPE_raw>' e:\builds\libecwj2-3.3_vc9\source\include\NCSJPCBuffer.h(66) : error C2238: unex pected token(s) preceding ';' e:\builds\libecwj2-3.3_vc9\source\include\NCSJPCBuffer.h(68) : error C2059: synt ax error : '<L_TYPE_raw>' e:\builds\libecwj2-3.3_vc9\source\include\NCSJPCBuffer.h(68) : error C2238: unex pected token(s) preceding ';' e:\builds\libecwj2-3.3_vc9\source\include\NCSJPCBuffer.h(70) : error C2059: synt ax error : '<L_TYPE_raw>' e:\builds\libecwj2-3.3_vc9\source\include\NCSJPCBuffer.h(70) : error C2238: unex pected token(s) preceding ';' e:\builds\libecwj2-3.3_vc9\source\include\NCSJPCBuffer.h(72) : error C2059: synt ax error : '<L_TYPE_raw>' e:\builds\libecwj2-3.3_vc9\source\include\NCSJPCBuffer.h(72) : error C2238: unex pected token(s) preceding ';' e:\builds\libecwj2-3.3_vc9\source\include\NCSJPCBuffer.h(74) : error C2059: synt ax error : '<L_TYPE_raw>' e:\builds\libecwj2-3.3_vc9\source\include\NCSJPCBuffer.h(74) : error C2238: unex pected token(s) preceding ';' e:\builds\gdal\frmts\ecw\vsiiostream.h(114) : warning C4800: 'BOOLEAN' : forcing

value to bool 'true' or 'false' (performance warning)

ecwdataset.cpp(734) : warning C4244: 'initializing' : conversion from 'double' t o 'float', possible loss of data NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\ VC\BIN\cl.EXE"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\ VC\BIN\nmake.EXE"' : return code '0x2'

Change History (1)

comment:1 Changed 13 years ago by tamas

Resolution: fixed
Status: newclosed

Fixed in r16370 and r16371

Note: See TracTickets for help on using tickets.