首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Borland C++ - Boost库1.55错误

Borland C++ - Boost库1.55错误
EN

Stack Overflow用户
提问于 2014-07-30 11:02:09
回答 1查看 430关注 0票数 0

OS: Windows 7 IDE: 6

我试图添加mysql连接器,并出现了这样的错误。怎么修呢?

代码语言:javascript
复制
  [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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-10-07 08:26:00

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

  • 重新排序和/或添加#include语句
  • 添加缺失#定义

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

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

将其链接到您的项目+添加包含,并且它就是全部

用法几乎与PHP中相同

备注

  • 我从来没有对BCB6进行过适当的测试,因为它是一种极有缺陷的产品。
  • BCB5在每件事上都要好得多,所以我几乎立刻又回来了。
  • 现在我使用的是BDS2006,它也很老,但几乎可以执行任何32位的操作,并且可以免费使用100年。
  • 有一些小小的限制我也不介意
  • 不幸的是,Embarcadero关闭了它的服务器,因此无法获得新的许可证(至少据我所知)。
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25035149

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档