专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > 其他数据库

fastdb自带例子在vs2005编译不过,求解答,该如何处理

发布时间:2010-05-24 21:31:38 文章来源:www.iduyao.cn 采编人员:星星草
fastdb自带例子在vs2005编译不过,求解答
我下载了fastdb368版本,用其自带的脚本编译,lib生成和例子都木有问题。

我用vs2005编译lib也木有问题。

但是我把bugdb.h,bugdb.cpp加到vs2005中编译时,
就是单这2个文件为一个项目,
项目中依赖了advapi32.lib wsock32.lib fastdb.lib,
前2个看.mvc文件中看到的,
在bugdb.cpp加入了 #include "stdafx.h" ,

编译时报错:
1>正在编译...
1>bugdb.cpp
1>e:downfastdb-368fastdbincsockio.h(46) : error C2146: syntax error : missing ';' before identifier 'socket_handle_t'
1>e:downfastdb-368fastdbincsockio.h(46) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:downfastdb-368fastdbincsockio.h(46) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:downfastdb-368fastdbincsockio.h(121) : error C2146: syntax error : missing ';' before identifier 'get_handle'
1>e:downfastdb-368fastdbincsockio.h(121) : error C2433: 'socket_t::socket_handle_t' : 'virtual' not permitted on data declarations
1>e:downfastdb-368fastdbincsockio.h(121) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:downfastdb-368fastdbincsockio.h(121) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:downfastdb-368fastdbincsockio.h(121) : warning C4183: 'get_handle': missing return type; assumed to be a member function returning 'int'
1>e:downfastdb-368fastdbincsockio.h(121) : error C2253: 'socket_t::get_handle' : pure specifier or abstract override specifier only allowed on virtual function
1>生成日志保存在“file://e:miniPrjfastdbExamplefastdbExampleDebugBuildLog.htm”
1>fastdbExample - 8 个错误,1 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========

我换过包中自带的其他例子,也是报这样的错误。
求高手指点。

------解决方案--------------------
最近我也要研究内存数据库了。交流交流。402123022
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: