簡體   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