Opened 8 years ago

Closed 8 years ago

#6638 closed defect (fixed)

pdfio.cpp compile error with Visual Studio 2015

Reported by: Jeff McKenna Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: svn-trunk
Severity: normal Keywords:
Cc: Kurt Schwehr

Description

  • using today's gdal-trunk from svn
  • compile error when compiling pdf driver
  • change looks to come from user @goatbar in revision# 35262
  • error follows:
frmts\pdf>nmake /f makefile.vc

Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl   /nologo /MD /EHsc /Ox /FC /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG /W4 /wd4127 /wd4251 /wd4275 /wd4786 /wd4100 /wd4245 /wd4206 /wd4611  /DHAVE_SSE_AT_COMPILE_TIME /DHAVE_SSSE3_AT_COMPILE_TIME -I..\..\port -I..\..\ogr -I..\..\gcore  -I..\..\alg -I..\..\ogr\ogrsf_frmts  -I..\..\gnm -I..\..\gnm\gnm_frmts -I..\..\apps /DHAVE_AVX_AT_COMPILE_TIME -I..\vrt -I..\mem -I..\..\ogr\ogrsf_frmts\mem -I"D:\build\mapserver-buildkit-2015\gdal-trunk-vs-project"\..\poppler-0.39.0 -I"D:\build\mapserver-buildkit-2015\gdal-trunk-vs-project"\..\poppler-0.39.0/poppler -I"D:\build\mapserver-buildkit-2015\gdal-trunk-vs-project"\..\poppler-0.39.0/build/poppler -DPOPPLER_HAS_OPTCONTENT -DPOPPLER_BASE_STREAM_HAS_TWO_ARGS -DPOPPLER_0_20_OR_LATER -DPOPPLER_0_23_OR_LATER -DHAVE_POPPLER      -DGDAL_COMPILATION /c pdfdataset.cpp pdfio.cpp pdfobject.cpp pdfcreatecopy.cpp ogrpdflayer.cpp pdfwritabledataset.cpp pdfreadvectors.cpp
pdfdataset.cpp
pdfio.cpp
pdfobject.cpp
pdfcreatecopy.cpp
ogrpdflayer.cpp
pdfwritabledataset.cpp
pdfreadvectors.cpp
d:\build\mapserver-buildkit-2015\gdal-trunk-vs-project\frmts\pdf\pdfio.cpp(87): error C2612: trailing 'identifier' illegal in base/member initializer list
d:\build\mapserver-buildkit-2015\gdal-trunk-vs-project\frmts\pdf\pdfio.cpp(404): fatal error C1004: unexpected end-of-file found
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.

D:\build\mapserver-buildkit-2015\gdal-trunk-vs-project\frmts\pdf>svn blame frmts\pdf\pdfio.cpp > blame.txt
svn: warning: W155010: The node 'D:\build\mapserver-buildkit-2015\gdal-trunk-vs-project\frmts\pdf\frmts\pdf\pdfio.cpp' was not found.
svn: E200009: Could not perform blame on all targets because some targets don't exist

Change History (4)

comment:1 by Jeff McKenna, 8 years ago

Problem change was actually made today:

r35262 | goatbar | 2016-08-31 09:48:10 -0300 (Wed, 31 Aug 2016) "Cleanup initializer lists for ctors infrmts/pdf"
Last edited 8 years ago by Jeff McKenna (previous) (diff)

comment:2 by Jeff McKenna, 8 years ago

Cc: Kurt Schwehr added

comment:3 by Kurt Schwehr, 8 years ago

Does it work synced to r35263 or newer?

I think is the same failure as:

https://ci.appveyor.com/project/rouault/gdal-coverage/build/1.0.6423

comment:4 by Jeff McKenna, 8 years ago

Resolution: fixed
Status: newclosed

Works! Thanks for the quick fix Kurt. Closing.

Note: See TracTickets for help on using tickets.