Solved After Qt update, receiving lots of unusual compilation errors
-
For example, in the following code, I get:
"error: template argument for non-type template parameter must be an expression"// ... #include <boost/variant.hpp> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); boost::variant<int> b; // Error here return a.exec(); }
I am on Qt 5.11.0 and my codebase was compiling fine before the update. Is anyone else having this problem?
Obviously, something as simple as this should compile fine. cpp.sh/3qyk7
-
HI @iyop45,
- can your show your project
.pro
file please? - which compiler is this?
- which Qt version did you use before?
Regards
- can your show your project
-
Ah. I'm sorry. There was an issue with the compiler in the kit. It must've been changed from the update?
Thanks for raising my attention to this. I think it is working now.
-
Hi @iyop45,
Glad you solved it. So please mark this topic as SOLVED too. Thanks!