Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-39692

Qt Location doesn't build on Windows when pre-compiled headers are enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.0
    • 5.4.0
    • Location
    • None
    • Windows

    Description

      cb09e1e enables precompiled headers by default braking qtlocation on Windows

       maps\qgeocameratiles.cpp(78) : error C2365: 'Polygon' : redefinition; previous definition was 'function'
      C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\wingdi.h(4548) : see declaration of 'Polygon'
      maps\qgeocameratiles.cpp(114) : error C2146: syntax error : missing ';' before identifier 'frustumFootprint'
      maps\qgeocameratiles.cpp(114) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      maps\qgeocameratiles.cpp(114) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      maps\qgeocameratiles.cpp(114) : warning C4183: 'frustumFootprint': missing return type; assumed to be a member function returning 'int'
      maps\qgeocameratiles.cpp(116) : error C2923: 'QPair' : 'Polygon' is not a valid template type argument for parameter 'T1'
      C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\wingdi.h(4548) : see declaration of 'Polygon'
      maps\qgeocameratiles.cpp(116) : error C2923: 'QPair' : 'Polygon' is not a valid template type argument for parameter 'T2'
      C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\wingdi.h(4548) : see declaration of 'Polygon'
      maps\qgeocameratiles.cpp(116) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      maps\qgeocameratiles.cpp(116) : error C2143: syntax error : missing ',' before '&'
      maps\qgeocameratiles.cpp(117) : error C2923: 'QPair' : 'Polygon' is not a valid template type argument for parameter 'T1'
      C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\wingdi.h(4548) : see declaration of 'Polygon'
      maps\qgeocameratiles.cpp(117) : error C2923: 'QPair' : 'Polygon' is not a valid template type argument for parameter 'T2'
      C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\wingdi.h(4548) : see declaration of 'Polygon'
      maps\qgeocameratiles.cpp(117) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      maps\qgeocameratiles.cpp(117) : error C2143: syntax error : missing ',' before '&'
      maps\qgeocameratiles.cpp(120) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      maps\qgeocameratiles.cpp(120) : error C2143: syntax error : missing ',' before '&'
      maps\qgeocameratiles.cpp(327) : error C2146: syntax error : missing ';' before identifier 'footprint'
      maps\qgeocameratiles.cpp(327) : warning C4551: function call missing argument list
      maps\qgeocameratiles.cpp(327) : error C2065: 'footprint' : undeclared identifier
      maps\qgeocameratiles.cpp(330) : error C2923: 'QPair' : 'Polygon' is not a valid template type argument for parameter 'T1'
      C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\wingdi.h(4548) : see declaration of 'Polygon'
      maps\qgeocameratiles.cpp(330) : error C2923: 'QPair' : 'Polygon' is not a valid template type argument for parameter 'T2'
      C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\wingdi.h(4548) : see declaration of 'Polygon'
      maps\qgeocameratiles.cpp(330) : error C2065: 'footprint' : undeclared identifier
      maps\qgeocameratiles.cpp(330) : error C2512: 'QPair' : no appropriate default constructor available
      maps\qgeocameratiles.cpp(332) : error C2228: left of '.isEmpty' must have class/struct/union
      maps\qgeocameratiles.cpp(337) : error C2228: left of '.isEmpty' must have class/struct/union
      maps\qgeocameratiles.cpp(497) : error C2143: syntax error : missing ';' before 'QGeoCameraTilesPrivate::frustumFootprint'
      maps\qgeocameratiles.cpp(497) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      maps\qgeocameratiles.cpp(497) : error C2365: 'Polygon' : redefinition; previous definition was 'function'
      C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\wingdi.h(4548) : see declaration of 'Polygon'
      maps\qgeocameratiles.cpp(498) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      maps\qgeocameratiles.cpp(499) : error C2146: syntax error : missing ';' before identifier 'points'
      maps\qgeocameratiles.cpp(499) : warning C4551: function call missing argument list
      maps\qgeocameratiles.cpp(499) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(500) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(500) : error C2228: left of '.reserve' must have class/struct/union
      maps\qgeocameratiles.cpp(502) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(503) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(504) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(505) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(507) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(508) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(509) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(510) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(512) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(513) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(514) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(515) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(517) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(517) : error C2228: left of '.isEmpty' must have class/struct/union
      maps\qgeocameratiles.cpp(518) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(525) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(525) : error C2228: left of '.first' must have class/struct/union
      maps\qgeocameratiles.cpp(526) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(526) : error C2228: left of '.begin' must have class/struct/union
      maps\qgeocameratiles.cpp(526) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(526) : error C2228: left of '.end' must have class/struct/union
      maps\qgeocameratiles.cpp(528) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(528) : error C2228: left of '.size' must have class/struct/union
      maps\qgeocameratiles.cpp(529) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(529) : error C2228: left of '.at' must have class/struct/union
      maps\qgeocameratiles.cpp(529) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(529) : error C2228: left of '.at' must have class/struct/union
      maps\qgeocameratiles.cpp(530) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(530) : error C2228: left of '.remove' must have class/struct/union
      maps\qgeocameratiles.cpp(537) : error C2653: 'Polygon' : is not a class or namespace name
      maps\qgeocameratiles.cpp(537) : error C2065: 'iterator' : undeclared identifier
      maps\qgeocameratiles.cpp(537) : error C2146: syntax error : missing ';' before identifier 'i'
      maps\qgeocameratiles.cpp(537) : error C2065: 'i' : undeclared identifier
      maps\qgeocameratiles.cpp(538) : error C2065: 'i' : undeclared identifier
      maps\qgeocameratiles.cpp(538) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(538) : error C2228: left of '.begin' must have class/struct/union
      maps\qgeocameratiles.cpp(538) : error C2065: 'i' : undeclared identifier
      maps\qgeocameratiles.cpp(538) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(538) : error C2228: left of '.end' must have class/struct/union
      maps\qgeocameratiles.cpp(538) : error C2065: 'i' : undeclared identifier
      maps\qgeocameratiles.cpp(539) : error C2065: 'i' : undeclared identifier
      maps\qgeocameratiles.cpp(540) : error C2065: 'i' : undeclared identifier
      maps\qgeocameratiles.cpp(540) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(540) : error C2228: left of '.end' must have class/struct/union
      maps\qgeocameratiles.cpp(541) : error C2065: 'i' : undeclared identifier
      maps\qgeocameratiles.cpp(541) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(541) : error C2228: left of '.end' must have class/struct/union
      maps\qgeocameratiles.cpp(541) : error C2780: 'void std::sort(_RanIt,_RanIt)' : expects 2 arguments - 3 provided
      C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\algorithm(3639) : see declaration of 'std::sort'
      maps\qgeocameratiles.cpp(545) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(545) : error C2228: left of '.size' must have class/struct/union
      maps\qgeocameratiles.cpp(547) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(547) : error C2228: left of '.at' must have class/struct/union
      maps\qgeocameratiles.cpp(547) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(547) : error C2228: left of '.at' must have class/struct/union
      maps\qgeocameratiles.cpp(548) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(548) : error C2228: left of '.at' must have class/struct/union
      maps\qgeocameratiles.cpp(548) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(548) : error C2228: left of '.at' must have class/struct/union
      maps\qgeocameratiles.cpp(553) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(553) : error C2228: left of '.at' must have class/struct/union
      maps\qgeocameratiles.cpp(554) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(554) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(555) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(560) : error C2065: 'points' : undeclared identifier
      maps\qgeocameratiles.cpp(563) : error C2923: 'QPair' : 'Polygon' is not a valid template type argument for parameter 'T1'
      C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\wingdi.h(4548) : see declaration of 'Polygon'
      maps\qgeocameratiles.cpp(563) : error C2923: 'QPair' : 'Polygon' is not a valid template type argument for parameter 'T2'
      C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\wingdi.h(4548) : see declaration of 'Polygon'
      maps\qgeocameratiles.cpp(563) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      maps\qgeocameratiles.cpp(563) : error C2143: syntax error : missing ',' before '&'
      maps\qgeocameratiles.cpp(564) : error C2079: 'QGeoCameraTilesPrivate::splitPolygonAtAxisValue' uses undefined struct 'QPair'
      maps\qgeocameratiles.cpp(565) : error C2146: syntax error : missing ';' before identifier 'polygonBelow'
      maps\qgeocameratiles.cpp(565) : error C2065: 'polygonBelow' : undeclared identifier
      maps\qgeocameratiles.cpp(566) : error C2146: syntax error : missing ';' before identifier 'polygonAbove'
      maps\qgeocameratiles.cpp(566) : error C2065: 'polygonAbove' : undeclared identifier
      maps\qgeocameratiles.cpp(568) : error C2065: 'polygon' : undeclared identifier
      maps\qgeocameratiles.cpp(568) : error C2228: left of '.size' must have class/struct/union
      maps\qgeocameratiles.cpp(571) : error C2923: 'QPair' : 'Polygon' is not a valid template type argument for parameter 'T1'
      maps\qgeocameratiles.cpp(563) : see declaration of 'Polygon'
      maps\qgeocameratiles.cpp(571) : error C2923: 'QPair' : 'Polygon' is not a valid template type argument for parameter 'T2'
      maps\qgeocameratiles.cpp(563) : see declaration of 'Polygon'
      maps\qgeocameratiles.cpp(571) : error C2955: 'QPair' : use of class template requires template argument list
      c:\work\build\qt\qtbase\include\qtcore\../../src/corelib/tools/qpair.h(52) : see declaration of 'QPair'
      maps\qgeocameratiles.cpp(571) : error C2065: 'polygonBelow' : undeclared identifier
      maps\qgeocameratiles.cpp(571) : fatal error C1003: error count exceeds 100; stopping compilation
      

      Attachments

        For Gerrit Dashboard: QTBUG-39692
        # Subject Branch Project Status CR V

        Activity

          People

            ablasche Alex Blasche
            seahumad [BB] Sergio Ahumada (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes