Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/fsharp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++11 c++;错误:不允许使用不完整的类型_C++11_Compiler Errors - Fatal编程技术网

C++11 c++;错误:不允许使用不完整的类型

C++11 c++;错误:不允许使用不完整的类型,c++11,compiler-errors,C++11,Compiler Errors,我想重建RplidarCpp.dll文件并向其中添加一些函数。我在VisualStudio2010中创建了这个项目。但有些错误我无法修复。请帮我解决它们 多谢各位 #include "stdafx.h" #include "rplidar.h" #include <iostream> #define _DLLEXPORT __declspec(dllexport) using namespace rp::standalone::rplidar; class LidarMgr {

我想重建RplidarCpp.dll文件并向其中添加一些函数。我在VisualStudio2010中创建了这个项目。但有些错误我无法修复。请帮我解决它们

多谢各位

#include "stdafx.h"
#include "rplidar.h"
#include <iostream>

#define _DLLEXPORT __declspec(dllexport)

using namespace rp::standalone::rplidar;

class LidarMgr
{
public:
    LidarMgr() ;
    ~LidarMgr();

    const LidarMgr& operator=(const LidarMgr&) = delete;
    const LidarMgr(const LidarMgr &) = delete;

public:
    static RPlidarDriver * lidar_drv;
    bool m_isConnected;
    rplidar_response_device_info_t devinfo;

顶部代码不完整。

那么,错误在哪里?请用错误消息更新您的帖子。我添加了错误图片。请看。你把const放在你的副本构造函数前面。这是我下载的原始代码。写什么?
const LidarMgr& operator=(const LidarMgr&) = delete;
const LidarMgr(const LidarMgr &) = delete;