tungdsefastec commented on issue #46258:
URL: https://github.com/apache/arrow/issues/46258#issuecomment-2840546001

   I used vcpkg for downloading the package. The version of the arrow is 
19.0.1. Actually, the MSVC 16 does support the C++17, and we are currently 
using C++ 17 for our project. We suspect that it conflicts with the 
qcoreapplication.h. I can build without errors if not including, or putting the 
arrow header before the qcoreapplication.h. 
   I made a simple example to check. 
   With this version, it will give error.
   #include <iostream>
   #include <QCoreApplication>
   #include "arrow/io/file.h"
   int main(int argc, char *argv[])
   {
       QCoreApplication a(argc, argv);
       std::cout << "nothing to show";
       a.exec();
   }
   
   However, if I put the "arrow/io/file.h" before the QCoreApplication, it will 
be fine.
   #include <iostream>
   #include "arrow/io/file.h"
   #include <QCoreApplication>
   int main(int argc, char *argv[])
   {
       QCoreApplication a(argc, argv);
       std::cout << "nothing to show";
       a.exec();
   }
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to