精易论坛

标题: 易语言静态编译时出现静态连接失败,有哪位仁兄知道怎么... [打印本页]

作者: qiuer0508    时间: 2023-6-30 13:28
标题: 易语言静态编译时出现静态连接失败,有哪位仁兄知道怎么...
正在编译现行程序
正在检查重复名称...
正在预处理现行程序
正在编译易模块"精易模块", 文件名: "M:\易语言v5.93\模块\精易模块[v9.2.0].ec", 版本号: "9.2", 创建号: "0.0", 作者: "广大易友".
正在进行名称连接...
正在统计需要编译的子程序
正在编译...
正在生成主程序入口代码
程序代码编译成功
等待用户输入欲编译到的文件名
正在进行名称连接...
开始静态链接...
libboost_regex-vc6-mt-s-1_34_1.lib(w32_regex_traits.obj) : error LNK2001: 无法解析的外部符号 "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YAXXZ)
RegEx_static.lib(RegEx.obj) : error LNK2001: 无法解析的外部符号 "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YAXXZ)
libboost_regex-vc6-mt-s-1_34_1.lib(instances.obj) : error LNK2001: 无法解析的外部符号 "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YAXXZ)
libboost_regex-vc6-mt-s-1_34_1.lib(regex.obj) : error LNK2001: 无法解析的外部符号 "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YAXXZ)
libboost_regex-vc6-mt-s-1_34_1.lib(regex_traits_defaults.obj) : error LNK2001: 无法解析的外部符号 "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YAXXZ)
RegEx_static.lib(RegEx.obj) : error LNK2019: 无法解析的外部符号 "void __cdecl std::_Xran(void)" (?_Xran@std@@YAXXZ),该符号在函数 RegEx_?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@II@Z 中被引用
libboost_regex-vc6-mt-s-1_34_1.lib(instances.obj) : error LNK2001: 无法解析的外部符号 "void __cdecl std::_Xran(void)" (?_Xran@std@@YAXXZ)
libboost_regex-vc6-mt-s-1_34_1.lib(regex.obj) : error LNK2001: 无法解析的外部符号 "void __cdecl std::_Xran(void)" (?_Xran@std@@YAXXZ)
libboost_regex-vc6-mt-s-1_34_1.lib(w32_regex_traits.obj) : error LNK2001: 无法解析的外部符号 "void __cdecl std::_Xran(void)" (?_Xran@std@@YAXXZ)
RegEx_static.lib(RegEx.obj) : error LNK2001: 无法解析的外部符号 "public: __thiscall exception::exception(class exception const &)" (??0exception@@QAE@ABV0@@Z)
libboost_regex-vc6-mt-s-1_34_1.lib(instances.obj) : error LNK2001: 无法解析的外部符号 "public: __thiscall exception::exception(class exception const &)" (??0exception@@QAE@ABV0@@Z)
libboost_regex-vc6-mt-s-1_34_1.lib(regex.obj) : error LNK2001: 无法解析的外部符号 "public: __thiscall exception::exception(class exception const &)" (??0exception@@QAE@ABV0@@Z)
libboost_regex-vc6-mt-s-1_34_1.lib(w32_regex_traits.obj) : error LNK2001: 无法解析的外部符号 "public: __thiscall exception::exception(class exception const &)" (??0exception@@QAE@ABV0@@Z)
RegEx_static.lib(RegEx.obj) : error LNK2001: 无法解析的外部符号 "public: virtual __thiscall exception::~exception(void)" (??1exception@@UAE@XZ)
libboost_regex-vc6-mt-s-1_34_1.lib(instances.obj) : error LNK2001: 无法解析的外部符号 "public: virtual __thiscall exception::~exception(void)" (??1exception@@UAE@XZ)
libboost_regex-vc6-mt-s-1_34_1.lib(regex.obj) : error LNK2001: 无法解析的外部符号 "public: virtual __thiscall exception::~exception(void)" (??1exception@@UAE@XZ)
libboost_regex-vc6-mt-s-1_34_1.lib(w32_regex_traits.obj) : error LNK2001: 无法解析的外部符号 "public: virtual __thiscall exception::~exception(void)" (??1exception@@UAE@XZ)
RegEx_static.lib(RegEx.obj) : error LNK2019: 无法解析的外部符号 "public: __thiscall exception::exception(char const * const &)" (??0exception@@QAE@ABQBD@Z),该符号在函数 RegEx_??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z 中被引用
libboost_regex-vc6-mt-s-1_34_1.lib(instances.obj) : error LNK2001: 无法解析的外部符号 "public: __thiscall exception::exception(char const * const &)" (??0exception@@QAE@ABQBD@Z)
libboost_regex-vc6-mt-s-1_34_1.lib(regex.obj) : error LNK2001: 无法解析的外部符号 "public: __thiscall exception::exception(char const * const &)" (??0exception@@QAE@ABQBD@Z)
libboost_regex-vc6-mt-s-1_34_1.lib(w32_regex_traits.obj) : error LNK2001: 无法解析的外部符号 "public: __thiscall exception::exception(char const * const &)" (??0exception@@QAE@ABQBD@Z)
libboost_regex-vc6-mt-s-1_34_1.lib(regex.obj) : error LNK2001: 无法解析的外部符号 "public: virtual char const * __thiscall exception::what(void)const " (?what@exception@@UBEPBDXZ)
libboost_regex-vc6-mt-s-1_34_1.lib(w32_regex_traits.obj) : error LNK2019: 无法解析的外部符号 "public: int __thiscall type_info::operator==(class type_info const &)const " (??8type_info@@QBEHABV0@@Z),该符号在函数 "public: virtual void * __thiscall boost::detail::sp_counted_impl_pd<struct HINSTANCE__ *,void (__cdecl*)(void *)>::get_deleter(class type_info const &)" (?get_deleter@?$sp_counted_impl_pd@PAUHINSTANCE__@@P6AXPAX@Z@detail@boost@@UAEPAXABVtype_info@@@Z) 中被引用
C:\Users\Administrator\Desktop\网1.exe : fatal error LNK1120: 7 个无法解析的外部命令
静态连接失败



作者: 笨来无一悟    时间: 2023-6-30 13:30
换连接器 VC98
作者: qiuer0508    时间: 2023-6-30 13:34
笨来无一悟 发表于 2023-6-30 13:30
换连接器 VC98


换连接器 VC98 后 编译 出现这行提示


正在进行名称连接...
正在统计需要编译的子程序
正在编译...
正在生成主程序入口代码
程序代码编译成功
等待用户输入欲编译到的文件名
正在进行名称连接...
开始静态链接...
LINK : fatal error LNK1181: cannot open input file "legacy_stdio_definitions.lib"
静态连接失败

作者: Lc_Rose    时间: 2023-6-30 14:11
第一个办法,更换链接器(98,6.0,7.0)都可以

第二个办法,逐行排查问题出在哪个支持库或模块或命令里,用其他方式代替它们。

出现这个问题是因为某个命令或支持库之类的不支持这个链接器
作者: linqing4    时间: 2023-6-30 14:36
qiuer0508 发表于 2023-6-30 13:34
换连接器 VC98 后 编译 出现这行提示

\e\tools目录下修改link.ini,
在报错的行前面加;
例子:
;extra_args=/DYNAMICBASE "legacy_stdio_definitions.lib"
作者: YangZI686    时间: 2023-6-30 22:00
qiuer0508 发表于 2023-6-30 13:34
换连接器 VC98 后 编译 出现这行提示

你这是少了一个支持库模块安装进去就好了
作者: 十三不是猫    时间: 2023-7-2 20:24
换个链接器,不行的话我这还有个静态编译修复器,屡试不爽易语言静态编译修复器

补充内容 (2023-7-2 20:44):
https://wwzm.lanzouj.com/iIQi3112ukfa
作者: 十三不是猫    时间: 2023-7-2 20:24
换个链接器,不行的话我这还有个静态编译修复器,屡试不爽易语言静态编译修复器

补充内容 (2023-7-2 20:44):
https://wwzm.lanzouj.com/iIQi3112ukfa




欢迎光临 精易论坛 (https://125.confly.eu.org/) Powered by Discuz! X3.4