Airsim: Build FAILED error C2259: 'msr::airlib::RealMultirotorConnector': cannot instantiate abstract class

Created on 30 Nov 2017  路  3Comments  路  Source: microsoft/AirSim

Build FAILED.

"C:\Projects\Roadrunner-Project\AirSim\AirSim.sln" (default target) (1) ->
"C:\Projects\Roadrunner-Project\AirSim\DroneServer\DroneServer.vcxproj" (default target) (6) ->
(ClCompile target) ->
c:\projects\roadrunner-project\airsim\droneserver\main.cpp(80): error C2259: 'msr::airlib::RealMultirotorConnector':
cannot instantiate abstract class [C:\Projects\Roadrunner-Project\AirSim\DroneServer\DroneServer.vcxproj]

Most helpful comment

In AirLib/include/vehicles/multirotor/controllers/RealMultirotorConnector.hpp under public add the lines:
virtual void printLogMessage(const std::string& message, std::string message_param = "", unsigned char severity = 0) override
{
}

and then rebuild. See Pull request #638

All 3 comments

I can't build either, getting the same error

I can't perform the behind because of this step either~~

In AirLib/include/vehicles/multirotor/controllers/RealMultirotorConnector.hpp under public add the lines:
virtual void printLogMessage(const std::string& message, std::string message_param = "", unsigned char severity = 0) override
{
}

and then rebuild. See Pull request #638

Was this page helpful?
0 / 5 - 0 ratings