Error with QNetworkSession::interface()
-
Hi,
i had this code running with Qt5.11QNetworkSession session ( conf ); QNetworkInterface intr = session.interface();now, with Qt5.12 this will note compile.
i have this :
main.cpp:44: erreur : expected unqualified-id before 'struct' QNetworkInterface intr = session.interface(); main.cpp:44: erreur : expected unqualified-id ^ Parse issue : rpc.h:12:19:note: expanded from macro 'interface'What is the probleme please ?
@LeLev said in Error with QNetworkSession::interface():
QNetworkInterface intr = session.interface();
Is it a typo? Should be int not intr.
-
@LeLev said in Error with QNetworkSession::interface():
QNetworkInterface intr = session.interface();
Is it a typo? Should be int not intr.
-
@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 ?
-
@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
-
@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
-
@LeLev Do you have anything related to MacOS in your pro file?