Qt 5.4 move to 5.5 resulted in C1001: internal compiler error for dll project
-
Hi everyone,
I moved from 5.4.1 to 5.5.0 and I ended up with strange problem. I get C1001:internal compiler error pointing to different qtcore header files. The project is for creating a dynamic library (Plugins.dll) based on a static library (Interface.lib).This is the project:
plugins.h:
#ifndef PLUGINS_H #define PLUGINS_H #include <QObject> #include <QtPlugin> #include "Plugins_global.h" #include <QPainter> #include "../../Interface/Interface/Interface.h" //using namespace Interfaces; class PLUGINSSHARED_EXPORT Plugins: public QObject, Interface { Q_OBJECT Q_PLUGIN_METADATA(IID "Interface" FILE "PlugIn.json") Q_INTERFACES(Interface) public: Plugins(); virtual QString echo2(QString &message); virtual void paint(QPainter &painter); virtual void mouseMoveEvent(); }; #endif // PLUGINS_H
plugins.cpp:
#include "Plugins.h" #include <QDebug> Plugins::Plugins() { } QString Plugins::echo2(QString &message) { return message; } void Plugins::paint(QPainter &painter) { QRect rect (10, 10, 300, 300); painter.save(); painter.setBrush(QColor(200,200,200,100)); painter.drawRect(rect); painter.restore(); } void Plugins::mouseMoveEvent() { }
Have any one of you have any idea what went wrong with 5.5 and why this is happening. Again on 5.4.1 is working just fine.
-
No one? :D
-
Hi
You should add which compiler you are using
-
@SGaist yes sorry, I use VS 2013.
-
Did you do a full re-build when you change Qt versions ?
-
Yes, more then once. But the result is always the same :(
-
Did you apply all updates to Visual Studio 2013 ?
-
Yes it is up to date.
-
Where exactly are you hitting the internal compiler error ?
-
@SGaist
C:\Qt\Qt5.5.0\5.5\msvc2013\include\QtCore\qobject.h:40: error: C1001: An internal error has occurred in the compiler.