Unsolved Error with QNetworkSession::interface()
-
@LeLev said in Error with QNetworkSession::interface():
QNetworkInterface intr = session.interface();
Is it a typo? Should be int not intr.
-
@jsulm i named it 'intr' for 'interface'
-
@LeLev Forget my comment, somehow I managed to read this line in a wrong way :-)
-
@LeLev
Error with QNetworkSession::interface():Do you have a macro in rpc.h called "interface"?
Can you check this ?
-
@Ratzz yes, there is
#include <_mingw.h> #ifndef __OBJC__ #undef interface #define interface struct #endif
in my C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include
-
-
@LeLev This is strange. You're not building for MacOS.
__OBJC__
is defined when building for MacOS, see https://stackoverflow.com/questions/2054669/objc-in-objective-c
-
@jsulm yes i'm building for windows.
-
@LeLev Do you have anything related to MacOS in your pro file?
-
@jsulm no, nothing