Unsolved qcompilerdetection.h error
-
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.
#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(); }
-
@usman-qt And what has this problem to do with the topic? Please open a new topic for your question!
-
Thread forked.
-
Can I get any updates?
-
@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?
-
This post is deleted! -
@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.
-
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.
-
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++.