繁体   English   中英

Borland C ++-Boost Library 1.55错误

[英]Borland C++ - Boost Library 1.55 Error

操作系统:Windows 7 IDE:Borland Builder 6

我试图添加mysql连接器,并出现了此类错误。 如何解决?

  [C++ Error] substitute_fwd.hpp(49): E2401 Invalid template argument list
  [C++ Error] substitute_fwd.hpp(49): E2041 Incorrect use of default
  [C++ Error] substitute_fwd.hpp(49): E2040 Declaration terminated incorrectly
  [C++ Error] meta_utils.hpp(54): E2401 Invalid template argument list
  [C++ Error] meta_utils.hpp(54): E2303 Type name expected
  [C++ Error] utility.hpp(38): E2437 'typename' should be followed by a qualified, dependent type name
  [C++ Error] utility.hpp(46): E2437 'typename' should be followed by a qualified, dependent type name
  [C++ Error] utility.hpp(54): E2437 'typename' should be followed by a qualified, dependent type name
  [C++ Error] utility.hpp(68): E2437 'typename' should be followed by a qualified, dependent type name
  [C++ Error] utility.hpp(69): E2034 Cannot convert 'move_detail::is_rv<T>::value' to 'bool'
  [C++ Error] utility.hpp(70): E2437 'typename' should be followed by a qualified, dependent type name
  [C++ Error] utility.hpp(76): E2437 'typename' should be followed by a qualified, dependent type name
  [C++ Error] utility.hpp(77): E2034 Cannot convert 'move_detail::is_rv<T>::value' to 'bool'
  [C++ Error] utility.hpp(78): E2437 'typename' should be followed by a qualified, dependent type name
  [C++ Error] iterator.hpp(43): E2437 'typename' should be followed by a qualified, dependent type name
  [C++ Error] algorithm.hpp(177): E2437 'typename' should be followed by a qualified, dependent type name
  [C++ Error] algorithm.hpp(216): E2437 'typename' should be followed by a qualified, dependent type name
  [C++ Error] algorithm.hpp(240): E2437 'typename' should be followed by a qualified, dependent type name
  [C++ Error] algorithm.hpp(263): E2437 'typename' should be followed by a qualified, dependent type name
  [C++ Error] static_assert.hpp(62): E2221 Macro argument syntax error
  [C++ Error] static_assert.hpp(182): E2221 Macro argument syntax error
  [C++ Error] aligned_storage.hpp(51): E2272 Identifier expected
  [C++ Error] aligned_storage.hpp(56): E2321 Declaration does not specify a tag or an identifier
  [C++ Error] cstdint.hpp(380): E2272 Identifier expected
  [C++ Error] cstdint.hpp(381): E2272 Identifier expected
  [C++ Error] cstdint.hpp(381): E2228 Too many error or warning messages

在大多数情况下,要使MSVC ++像库一样在Borland / Embarcadero环境中工作:

  • 重新排序和/或添加#include语句
  • 添加缺少的#define

无论如何对于MySQL,您都可以使用自己的hinterface(例如libmysql.dll)而不是boost

  • 它运行良好(在BCB5,BDS2006中测试)
  • 只需获取libmysql.dll +头文件(可从MySQL页面下载,也包含在某些安装中)
  • 使用implib.exe工具创建与Intel / Borland兼容的lib文件(位于Borlands bin文件夹中)

将其链接到您的项目+添加包含,仅此而已

用法与PHP中的用法几乎相同

[笔记]

  • 我从来没有适当地测试过BCB6,因为它极度越野
  • BCB5的所有方面都更好,所以我几乎立即切换回去
  • 现在我使用的BDS2006也很旧,但可以在其中执行几乎所有32位操作,并且可以免费使用100年
  • 有一些我不介意的小限制
  • 可悲的是,Embarcadero关闭了服务器,因此无法获得新的许可证(至少据我所知)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM