Error 'isRelocatable': undeclared identifier.
-
Hi all,
I have integrated few QT libraries in my desktop project. Previously used an older version of QT, currently updated it to 6.7.3. I am facing a build error of " 'isRelocatable': undeclared identifier. " after building my solution. I am building using visual studio 2022. I tried both versions of QT 6.7.3 and 6.8.1 issue reproduces for both the versions. I see a similar bug here, tried disabling /Zc:twoPhase- but prompts me with another compiler error saying two-phase name lookup is not supported for C++/CLI. any solutions to it? Could someone please help me with it.
Thanks
-
@wasimIM said in Error 'isRelocatable': undeclared identifier.:
'isRelocatable': undeclared identifier.
From where is it coming? You really should provide more context and the full error message.
-
@wasimIM
I think that is as per the https://bugreports.qt.io/browse/QTBUG-123922 you referenced. A post there saysisRelocatable is both defined and used there.
Between 6.6 and 6.7, we added that static_assert (in ff7d69dafda2f2cdc3a93f76ed8f77a113ac1a1c), so it has to be the reason why it is failing now. But there's nothing wrong with this code.
I think they are saying there is nothing wrong with the code but there is with MSVC 2022. Not sure that code is going to get changed by Qt.