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. qcompilerdetection.h error
Forum Updated to NodeBB v4.3 + New Features

qcompilerdetection.h error

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 4 Posters 1.1k Views 2 Watching
  • 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.
  • U Offline
    U Offline
    usman.qt
    wrote on last edited by
    #1

    Hello,

    I am new to Qt and C++ development and recently configured Qt with Visual Studio 2017. I have created a Qt console application and everything works fine and it executes with any issue. However, when I reference and include the header files of another C++ library to work with PDF documents, I get the same errors in qcompilerdetection.h file.

    • Errors details
    • Errors details
    #include <QtCore/QCoreApplication>
    #include <iostream> 
    
    // everything works fine is a comment the following line
    #include "stdafx.h" // contains the reference of additional headers of external library
    
    using namespace std; 
    
    int main(int argc, char *argv[])
    {
    	QCoreApplication a(argc, argv);
    	cout << "successful";
    	return a.exec();
    }
    
    Christian EhrlicherC 1 Reply Last reply
    0
    • U usman.qt

      Hello,

      I am new to Qt and C++ development and recently configured Qt with Visual Studio 2017. I have created a Qt console application and everything works fine and it executes with any issue. However, when I reference and include the header files of another C++ library to work with PDF documents, I get the same errors in qcompilerdetection.h file.

      • Errors details
      • Errors details
      #include <QtCore/QCoreApplication>
      #include <iostream> 
      
      // everything works fine is a comment the following line
      #include "stdafx.h" // contains the reference of additional headers of external library
      
      using namespace std; 
      
      int main(int argc, char *argv[])
      {
      	QCoreApplication a(argc, argv);
      	cout << "successful";
      	return a.exec();
      }
      
      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @usman-qt And what has this problem to do with the topic? Please open a new topic for your question!

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

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

        Thread forked.

        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
        1
        • U Offline
          U Offline
          usman.qt
          wrote on last edited by
          #4

          Can I get any updates?

          A 1 Reply Last reply
          0
          • Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @usman-qt said in qcompilerdetection.h error:

            Can I get any updates?

            Which updates? You include another library and then you get warnings - so why do you blame Qt then?

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            U 1 Reply Last reply
            0
            • Christian EhrlicherC Christian Ehrlicher

              @usman-qt said in qcompilerdetection.h error:

              Can I get any updates?

              Which updates? You include another library and then you get warnings - so why do you blame Qt then?

              U Offline
              U Offline
              usman.qt
              wrote on last edited by
              #6
              This post is deleted!
              A 1 Reply Last reply
              -1
              • Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by Christian Ehrlicher
                #7

                @usman-qt said in qcompilerdetection.h error:

                It really seems unprofessional from the support team of such a well-reputed company where you are acting rudely instead of giving any satisfactory answer

                First - this forum is a user-driven forum, it has absolutely nothing to do with TQtC nor are we paid for anything we do here. If you want support from TQtC then ask them via their support channels (and pay for it).

                Second - if you use Qt and it works fine and then add another library and it does not work - why do you blame Qt for this? Try to figure out what the other library does so it breaks the Qt headers.

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                1 Reply Last reply
                2
                • U usman.qt

                  This post is deleted!

                  A Offline
                  A Offline
                  asad.ali
                  wrote on last edited by
                  #8

                  @usman-qt

                  Regarding Aspose.PDF for C++, The common library asposecpplib has MulticastDelegate::emit() function and 'emit' is QT keyword as well. This is the main reason for the conflict and error you are facing. We are working over resolving the conflict and as soon as it is resolved, we will surely inform you. Please spare us some time.

                  PS: I am Asad Ali and I work at Aspose as Developer Evangelist.

                  1 Reply Last reply
                  2
                  • U usman.qt

                    Can I get any updates?

                    A Offline
                    A Offline
                    asad.ali
                    wrote on last edited by
                    #9

                    @usman-qt

                    We would like to share with you that QT support has been added to the Aspose.PDF for C++ 20.6. We have created and successfully tested QT project that used Aspose.PDF for C++.

                    1 Reply Last reply
                    1

                    • Login

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