C++报错集合:error: 'CppUnit::TestFixture' is an inaccessible base of 'LMQueryConnectionTest'
2012-02-14 11:48
801 查看
编译后报错:
LMQueryConnectionTest.cc:194: instantiated from here
/home/dts/users2/yujia.tao/DTS/trunk/vendor/cppunit/linux_gcc4/include/cppunit/extensions/TestFixtureFactory.h:41: error: 'CppUnit::TestFixture' is an inaccessible base of 'LMQueryConnectionTest'
出错处为:
在LMQueryConnectionTest.h头文件里,
class LMQueryConnectionTest:public LMQueryConnection
, public LMQueryConnectionParam
, public CppUnit::TestFixture {
XXXXXX;
};
CppUnit::TestFixture之前的public忘记写了。细节!
LMQueryConnectionTest.cc:194: instantiated from here
/home/dts/users2/yujia.tao/DTS/trunk/vendor/cppunit/linux_gcc4/include/cppunit/extensions/TestFixtureFactory.h:41: error: 'CppUnit::TestFixture' is an inaccessible base of 'LMQueryConnectionTest'
出错处为:
在LMQueryConnectionTest.h头文件里,
class LMQueryConnectionTest:public LMQueryConnection
, public LMQueryConnectionParam
, public CppUnit::TestFixture {
XXXXXX;
};
CppUnit::TestFixture之前的public忘记写了。细节!
相关文章推荐
- Inheritance: 'A' is an inaccessible base of 'B'
- error: 'xxx函数' is inaccessible,'Text' is not an accessible base of 'TextLine'
- C++错误集锦之:error C2243: 'type cast' : conversion exists, but is inaccessible
- Qt5.9Creator中,使用信号与槽机制connect()函数时,出现错误提示:'QObject' is an inaccessible base of 'ClassA'
- error: request for member '*' in '*', which is of non-class type '*'
- CodeSign error: code signing is required for product type 'Unit Test Bundle' in SDK 'iOS 8.0'
- About Derby "ERROR 42X51: The class '***' does not exist or is inaccessible. This can hap pen if the class is not public."
- CodeSign error: code signing is required for product type 'Unit Test Bundle' in SDK 'iOS 8.1'
- - No enclosing instance of type Test is accessible. Must qualify the allocation with an enclosing in
- VS2005中编译出错:Error 1 error C3872: '0x3000': this character is not allowed in an identifier
- - No enclosing instance of type Test is accessible. Must qualify the allocation with an enclosing in
- X-code6 错误CodeSign error: code signing is required for product type 'Unit Test Bundle' in SDK 'iOS 8
- There is no READABLE property named 'day' in class 'java.lang.String';You have an error in your SQL
- OraOLEDBpus10.dll: 找不到指定的模块。Test connection failed because of an error in initializing provider. 未在
- 【Java-bug】No enclosing instance of type Test is accessible. Must qualify the allocation with an encl
- 安卓JNI编程-- :error: base operand of '->' has non-pointer type '_JNIEnv' 解决办法
- cocos2d-x-2.2.5 Eclipse编译报错 error: 'transform' is not a member of 'std' (IOS没有问题)
- error: ISO C++ forbids declaration of 'XXXX' with no type
- kingofark's Ineffective C/C++:低手自序
- kingofark's Ineffective C/C++:低手自序