Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5.4 move to 5.5 resulted in C1001: internal compiler error for dll project

Qt 5.4 move to 5.5 resulted in C1001: internal compiler error for dll project

Scheduled Pinned Locked Moved General and Desktop
liblibrarydllqt5.5
10 Posts 2 Posters 4.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xumepoc
    wrote on last edited by Xumepoc
    #1

    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.

    1 Reply Last reply
    0
    • X Offline
      X Offline
      Xumepoc
      wrote on last edited by
      #2

      No one? :D

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi

        You should add which compiler you are using

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        X 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi

          You should add which compiler you are using

          X Offline
          X Offline
          Xumepoc
          wrote on last edited by
          #4

          @SGaist yes sorry, I use VS 2013.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Did you do a full re-build when you change Qt versions ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • X Offline
              X Offline
              Xumepoc
              wrote on last edited by
              #6

              Yes, more then once. But the result is always the same :(

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Did you apply all updates to Visual Studio 2013 ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • X Offline
                  X Offline
                  Xumepoc
                  wrote on last edited by
                  #8

                  Yes it is up to date.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Where exactly are you hitting the internal compiler error ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    X 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Where exactly are you hitting the internal compiler error ?

                      X Offline
                      X Offline
                      Xumepoc
                      wrote on last edited by
                      #10

                      @SGaist
                      C:\Qt\Qt5.5.0\5.5\msvc2013\include\QtCore\qobject.h:40: error: C1001: An internal error has occurred in the compiler.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved