Bootstrap

c++ error: ‘*’ does not name a type; did you mean ‘**’?

PhotoSnap/PhotoSnap_Impl.h: At global scope:
PhotoSnap/PhotoSnap_Impl.h:132:31: error: ‘XcamRtkEventData_T’ does not name a type; did you mean ‘XcamStringData_T’?
  132 |     int DoClogRtkStatus(const XcamRtkEventData_T &objRtkStatus);
      |                               ^~~~~~~~~~~~~~~~~~
      |                               XcamStringData_T

编译时报此错误。检查源码已包含头文件,也指定最头文件绝对路径,但编译不通过。那肯定就是命名空间的问题了!

排查:

1.检查源码包含头文件。

搜索头文件位置

Business/Modules/XcamControl/XcamCtrlUdpMsg.h:865:class XcamRtkEventData_T : public XcamMsgBase, public kapok_functionals::IpcMsgBase {

2.指明命名空间。

using namespace business_modules_xcamcontrol;

或者

using business_modules_xcamcontrol::XcamRtkEventData_T;

编译通过。

;