英文:
Error: Unresolved external 'std::_String_base::_Xlen() const' referenced from-and others when compiling project in C++Builder11
问题
根据标题,我有9个链接错误,如下所示:
[ilink32 错误] 错误:未解析的外部符号 'std::_String_base::_Xran() const' 的引用来源于
[ilink32 错误] 错误:未解析的外部符号 '__InitExceptBlockLDTC' 的引用来源于
[ilink32 错误] 错误:未解析的外部符号 'std::_String_base::_Xlen() const' 的引用来源于
[ilink32 错误] 错误:未解析的外部符号 '_ReThrowException(unsigned int, unsigned char *)&' 的引用来源于
[ilink32 错误] 错误:未解析的外部符号 '_CatchCleanup()' 的引用来源于
[ilink32 错误] 错误:未解析的外部符号 '__fastcall __DynamicCastVCLptr(void *, void *)&' 的引用来源于
[ilink32 错误] 错误:未解析的外部符号 '_ThrowExceptionLDTC(void *, void *, void *, void *, unsigned int, unsigned int, unsigned int, unsigned char *, void *)&' 的引用来源于
[ilink32 错误] 错误:未解析的外部符号 '__Return_unwind' 的引用来源于
这些引用指向在 C++Builder 10.1、10.2 Berlin 中编写的自定义组件,并且在项目中编译和使用时并没有太多麻烦。
不幸的是,我在关于 C++Builder 的实际解决方案中并没有找到任何解决方案,可以在这里找到:https://stackoverflow.com/questions/15085002/。
当我将项目加载到刚刚安装的 C++Builder 10.4 中时,除了快速纠正了一些迁移错误之外,组件安装到了组件面板,但在编译使用这些组件的项目时出现了链接器错误。
我已经搜索了有关链接器错误的任何参考资料,也许我使用的搜索引擎不对,我不会使用 Google,所以,对正确方向的任何指引将不胜感激。
我尝试通过在搜索引擎中提出问题来寻找解决方案,但没有找到有用的答案,在 C++Builder 中的细节很少(这并不罕见),所以我来这里向专家请教。
英文:
As per title, I have 9 linker errors as follows:
[ilink32 Error] Error: Unresolved external 'std::_String_base::_Xran() const' referenced from
[ilink32 Error] Error: Unresolved external '__InitExceptBlockLDTC' referenced from
[ilink32 Error] Error: Unresolved external 'std::_String_base::_Xlen() const' referenced from
[ilink32 Error] Error: Unresolved external '_ReThrowException(unsigned int, unsigned char *)' referenced from
[ilink32 Error] Error: Unresolved external '_CatchCleanup()' referenced from
[ilink32 Error] Error: Unresolved external '__fastcall __DynamicCastVCLptr(void *, void *)' referenced from
[ilink32 Error] Error: Unresolved external '_ThrowExceptionLDTC(void *, void *, void *, void *, unsigned int, unsigned int, unsigned int, unsigned char *, void *)' referenced from
[ilink32 Error] Error: Unresolved external '__Return_unwind' referenced from
These references refer to custom components written in C++Builder 10.1, 10.2 Berlin, and compile and used in projects without too much fuss.
The unfortunate thing about this is that I have not come across any real solutions for this in reference to C++Builder, found here: https://stackoverflow.com/questions/15085002/.
When I loaded the project into C++Builder 10.4, installed just today, apart from a couple of migration errors corrected quickly, the components installed into the component pallet but linker errors occurred when compiling the project that uses the components.
I have searched for any reference to the linker error, maybe I am using the wrong search engine, I will not use Google so, any pointing in the right direction would be very much appreciated.
I tried searching for solutions by asking questions in the search engines, no useful answers were found, with little to no detailed in C++Builder (not unusual), so I came here to ask the experts.
答案1
得分: 0
已解答以帮助其他人。
我脑中闪过一个念头,所以我检查了编译器版本,使用'Borland'经典编译器
未被选中,当我选中该选项并重新编译时,它顺利运行。
英文:
Answered here to help others.
A thought crossed my mind, so I checked the compiler version, Use 'Classic' Borland compiler
was unchecked, when I checked the option and re-compiled, it ran without issue.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论