> You must have some stale headers or precompiled headers lying around. Make 
> sure it's a completely clean build and that the older version of Qt is not 
> anywhere to be found.

I've tried everything:
* Renamed the old Qt 5.6 directory
* Checked to see I don't have any Qt environment variables set
* Told Visual Studio to do a clean build
* Manually deleted Debug and GeneratedFiles directories
* Manually deleted C:\Users\Tom\AppData\Local\QtMsBuild directory (from 
https://blog.qt.io/blog/2018/01/24/qt-visual-studio-new-approach-based-msbuild/)
* Changed the compiler to ISO C++17 Standard (/std:c++17)

Any other suggestions?

The only thing I'm doing that's slightly unusual is building against the Visual 
Studio 2015 32-bit binaries because we haven't moved our app to 64-bit yet. But 
I wouldn't have thought this wouldn't be a problem until linking?

Tom Isaacson

1>c:\qt\qt5.11.1\5.11.1\msvc2015\include\qtcore\qalgorithms.h(51): error C4430: 
missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\qt\qt5.11.1\5.11.1\msvc2015\include\qtcore\qalgorithms.h(51): error C2146: 
syntax error: missing ';' before identifier 'QT_WARNING_PUSH'
1>c:\qt\qt5.11.1\5.11.1\msvc2015\include\qtcore\qalgorithms.h(57): error C2143: 
syntax error: missing ';' before '{'
1>c:\qt\qt5.11.1\5.11.1\msvc2015\include\qtcore\qalgorithms.h(57): error C2447: 
'{': missing function header (old-style formal list?)
1>c:\qt\qt5.11.1\5.11.1\msvc2015\include\qtcore\qalgorithms.h(317): error 
C2144: syntax error: 'void' should be preceded by ';'
1>c:\qt\qt5.11.1\5.11.1\msvc2015\include\qtcore\qalgorithms.h(317): error 
C2065: 'ForwardIterator': undeclared identifier
1>c:\qt\qt5.11.1\5.11.1\msvc2015\include\qtcore\qalgorithms.h(317): error 
C2146: syntax error: missing ')' before identifier 'begin'
1>c:\qt\qt5.11.1\5.11.1\msvc2015\include\qtcore\qalgorithms.h(318): error 
C2143: syntax error: missing ';' before '{'
1>c:\qt\qt5.11.1\5.11.1\msvc2015\include\qtcore\qalgorithms.h(318): error 
C2447: '{': missing function header (old-style formal list?)
1>c:\qt\qt5.11.1\5.11.1\msvc2015\include\qtcore\qalgorithms.h(685): error 
C4430: missing type specifier - int assumed. Note: C++ does not support 
default-int
1>c:\qt\qt5.11.1\5.11.1\msvc2015\include\qtcore\qalgorithms.h(685): error 
C2146: syntax error: missing ';' before identifier 'Q_DECL_CONSTEXPR'
1>c:\qt\qt5.11.1\5.11.1\msvc2015\include\qtcore\qalgorithms.h(686): error 
C2143: syntax error: missing ';' before '{'
1>c:\qt\qt5.11.1\5.11.1\msvc2015\include\qtcore\qalgorithms.h(686): error 
C2447: '{': missing function header (old-style formal list?)
1>c:\qt\qt5.11.1\5.11.1\msvc2015\include\qtcore\qalgorithms.h(698): error 
C4430: missing type specifier - int assumed. Note: C++ does not support 
default-int
1>c:\qt\qt5.11.1\5.11.1\msvc2015\include\qtcore\qalgorithms.h(698): error 
C2086: 'int Q_DECL_CONST_FUNCTION': redefinition
(cont)

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to