ocl:: creexception的类型信息

Typeinfo for ocl::CRException

本文关键字:信息 类型 creexception ocl      更新时间:2023-10-16

我试图使用g++运行我的c++程序,但我得到以下异常:"typeinfo for 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 */

这通常意味着您忘记在某处定义(实现)虚方法。检查ocl::CRException的所有虚拟方法都定义了,并且定义它们的对象文件实际上链接到了您的代码。

如果没有帮助,请编辑答案并显示CRException的代码。