所属类别为OCL :: CRException(Typeinfo for ocl::CRExcept

2019-11-01 21:40发布

我试着使用G ++,但我得到以下异常运行我的C ++程序:“所属类别的OCL :: CRException”正在使用含CRException类..请帮我在这OCL命名空间。

下面是我在哪里,包括OCL类的代码:

#ifndef VOIDSOFT_ADA2_LIND_HH

#define VOIDSOFT_ADA2_LIND_HH
#include <string>
#include <list>
#include <queue>
#include <map>
#include <ocl.h>
#include "threaded.hh"

using namespace std;
using namespace ocl;

class circuit;

class Lind: public Threaded 
{
public:
    typedef int lookup_t;

private:
    OraConnection connection;
    pthread_mutex_t *done_m;
    queue<pthread_t> *q;
    lookup_t type;

public:
    circuit *c;
    Lind();
    ~Lind();

    void *run();    

    map<string, pair<string, string> > *getnodes(string);

    bool connect();
    void disconnect();

private:
    circuit *getcircuitinfo(string, circuit *c = 0);               
    void bindInStr(OraQuery &q, string arg, string bindvar, map<string, string> *properties);

    map<string, pair<string, string> > *node2name(string);
};

/* Lookup types */
namespace LindLookupTypes {
    /* Get overlying */
    const int OL = 0x001;
    /* Get underlying */
    const int UL = 0x002;
}
#endif /* VOIDSOFT_ADA2_LIND_HH */

Answer 1:

这通常意味着你忘了某处定义(实现)虚拟方法。 检查的所有虚拟方法ocl::CRException定义,并且它们被定义的目标文件实际上是链接到你的代码。

如果没有帮助,编辑的答案,我们展示的代码CRException



文章来源: Typeinfo for ocl::CRException