Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
Qt for MCUs 2.8
-
None
Description
Attached a modified camera example which useses a module qmlproject file which contains foo.h. The normal camera example uses the camerainterface.h.
Both foo.h and camerainterface.h contain the following snippet:
constexpr long double foo() { return M_PI; }
While this compiles fine in camerainterface.h, it doesn't compile in foo.h with the following error:
/home/gagi/work/customers/v-zug/qul_vanilla/examples/camera/foo.h:5:15: error: use of undeclared identifier 'M_PI' /home/gagi/work/customers/v-zug/qul_vanilla/examples/camera/foo.h:5:9: warning: uninitialized variable in a constexpr function is a C++20 extension [-Wc++20-extensions] Error: use of undeclared identifier 'M_PI'