cant build my C,C++ code base with build wrapper command: here is my command to build the code:
build-wrapper-linux-x86-64 --out-dir . make clean all
here is the output logs:
LicenseManager.cpp: In member function ‘bool LicenseManager::getRemainingAnalyticUnits(int&) const’:
LicenseManager.cpp:2432:11: error: ‘scoped_ptr’ is not a member of ‘boost’
boost::scoped_ptr p_license(createLicenseInterface(retCode));
^~~~~~~~~~
LicenseManager.cpp:2432:11: note: suggested alternative: ‘shared_ptr’
boost::scoped_ptr p_license(createLicenseInterface(retCode));
^~~~~~~~~~
shared_ptr
LicenseManager.cpp:2432:39: error: expected primary-expression before ‘>’ token
boost::scoped_ptr p_license(createLicenseInterface(retCode));
^
LicenseManager.cpp:2432:41: error: ‘p_license’ was not declared in this scope
boost::scoped_ptr p_license(createLicenseInterface(retCode));
^~~~~~~~~
LicenseManager.cpp: In member function ‘std::pair<reid::license::LicenseStatus_ENUM, reid::license::SufficientLicenseInfo> LicenseManager::checkSufficientLicenseStats(const std::vectorreid::license::CameraModelInfo&) const’:
LicenseManager.cpp:2640:11: error: ‘scoped_ptr’ is not a member of ‘boost’
boost::scoped_ptr p_license(createLicenseInterface(retCode));
^~~~~~~~~~
LicenseManager.cpp:2640:11: note: suggested alternative: ‘shared_ptr’
boost::scoped_ptr p_license(createLicenseInterface(retCode));
^~~~~~~~~~
shared_ptr
LicenseManager.cpp:2640:39: error: expected primary-expression before ‘>’ token
boost::scoped_ptr p_license(createLicenseInterface(retCode));
^
LicenseManager.cpp:2640:41: error: ‘p_license’ was not declared in this scope
boost::scoped_ptr p_license(createLicenseInterface(retCode));
^~~~~~~~~
: recipe for target ‘LicenseManager.o’ failed
make: *** [LicenseManager.o] Error 1
Here is my Sonar scanner environment setup.
Sonar-scanner version: 3.3.0
java version: 11.0.18
g++ version: 7.5.0
Build-wrapper version: build-wrapper, version 6.32 (linux-x86)
ubuntu version: 20.04