wjd1998 发表于 2016-9-20 15:04:16

PX4 编译程序出错

不能发截图我描述下,帮我看看什么原因:
   错误提示: PXFirmware/src/drivers/device/device_nuttx.h:60:1error:unknown type name 'namespacenamespace device __EXPORT


这是device/device_nuttx.h 中的代码部分:
/**
* Namespace encapsulating all device framework classes, functions and data.
*/
namespace device __EXPORT
{

typedef struct file file_t;

/**
* Fundamental base class for all device drivers.
*
* This class handles the basic "being a driver" things, including
* interrupt registration and dispatch.
*/
class __EXPORT Device
{
public:
        /**
       * Destructor.
       *
       * Public so that anonymous devices can be destroyed.
       */
        virtual ~Device();
页: [1]
查看完整版本: PX4 编译程序出错