当前位置: 代码迷 >> 其他数据库 >> fastdb自带例子在vs2005编译不过,求解答,该如何处理
  详细解决方案

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

热度:8438   发布时间:2013-02-26 00:00:00.0
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:\down\fastdb-368\fastdb\inc\sockio.h(46) : error C2146: syntax error : missing ';' before identifier 'socket_handle_t'
1>e:\down\fastdb-368\fastdb\inc\sockio.h(46) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\down\fastdb-368\fastdb\inc\sockio.h(46) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\down\fastdb-368\fastdb\inc\sockio.h(121) : error C2146: syntax error : missing ';' before identifier 'get_handle'
1>e:\down\fastdb-368\fastdb\inc\sockio.h(121) : error C2433: 'socket_t::socket_handle_t' : 'virtual' not permitted on data declarations
1>e:\down\fastdb-368\fastdb\inc\sockio.h(121) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\down\fastdb-368\fastdb\inc\sockio.h(121) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\down\fastdb-368\fastdb\inc\sockio.h(121) : warning C4183: 'get_handle': missing return type; assumed to be a member function returning 'int'
1>e:\down\fastdb-368\fastdb\inc\sockio.h(121) : error C2253: 'socket_t::get_handle' : pure specifier or abstract override specifier only allowed on virtual function
1>生成日志保存在“file://e:\miniPrj\fastdbExample\fastdbExample\Debug\BuildLog.htm”
1>fastdbExample - 8 个错误,1 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========

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

------解决方案--------------------------------------------------------
最近我也要研究内存数据库了。交流交流。402123022
  相关解决方案