开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 1045|回复: 2
收起左侧

[求助] 引用lrc歌词模块后无法编译

[复制链接]
结帖率:100% (28/28)
发表于 2021-9-26 20:21:47 | 显示全部楼层 |阅读模式   福建省福州市

https://bbs.125.la/forum.php?mod ... rtype=1#pid21863232
如果用静态编译,直接报错。

不用静态编译,软件可以被编译出来,但是执行载入窗口都会崩溃。无法正常使用

等一个大佬

编译信息如下:
正在进行名称连接...
正在统计需要编译的子程序
正在编译...
正在生成主程序入口代码
程序代码编译成功
等待用户输入欲编译到的文件名
正在进行名称连接...
开始静态链接...
libcpmt.lib(wcout.obj) : error LNK2005: "public: __thiscall std::bad_cast::bad_cast(class std::bad_cast const &)" (??0bad_cast@std@@QAE@ABV01@@Z) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(wcout.obj) : error LNK2005: "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(wcout.obj) : error LNK2005: "public: virtual __thiscall std::bad_cast::~bad_cast(void)" (??1bad_cast@std@@UAE@XZ) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(wcout.obj) : error LNK2005: "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(wcout.obj) : error LNK2005: "public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(xthrow.obj) : error LNK2005: "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(xthrow.obj) : error LNK2005: "public: __thiscall std::exception::exception(void)" (??0exception@std@@QAE@XZ) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(xthrow.obj) : error LNK2005: "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(xthrow.obj) : error LNK2005: "public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(locale.obj) : error LNK2005: "public: __thiscall std::bad_cast::bad_cast(class std::bad_cast const &)" (??0bad_cast@std@@QAE@ABV01@@Z) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(locale.obj) : error LNK2005: "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(locale.obj) : error LNK2005: "public: virtual __thiscall std::bad_cast::~bad_cast(void)" (??1bad_cast@std@@UAE@XZ) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(locale.obj) : error LNK2005: "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(locale.obj) : error LNK2005: "public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(locale.obj) : error LNK2005: __vsprintf_s_l 已经在 libcmt.lib(vsnprnc.obj) 中定义
libcpmt.lib(locale.obj) : error LNK2005: _sprintf_s 已经在 libcmt.lib(sprintf.obj) 中定义
libcpmt.lib(wlocale.obj) : error LNK2005: "public: __thiscall std::bad_cast::bad_cast(class std::bad_cast const &)" (??0bad_cast@std@@QAE@ABV01@@Z) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(wlocale.obj) : error LNK2005: "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(wlocale.obj) : error LNK2005: "public: virtual __thiscall std::bad_cast::~bad_cast(void)" (??1bad_cast@std@@UAE@XZ) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(wlocale.obj) : error LNK2005: "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(wlocale.obj) : error LNK2005: "public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(wlocale.obj) : error LNK2005: __vsprintf_s_l 已经在 libcmt.lib(vsnprnc.obj) 中定义
libcpmt.lib(wlocale.obj) : error LNK2005: _sprintf_s 已经在 libcmt.lib(sprintf.obj) 中定义
libcpmt.lib(xlocale.obj) : error LNK2005: "public: __thiscall std::bad_cast::bad_cast(class std::bad_cast const &)" (??0bad_cast@std@@QAE@ABV01@@Z) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(xlocale.obj) : error LNK2005: "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception@std@@QAE@ABV01@@Z) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(xlocale.obj) : error LNK2005: "public: virtual __thiscall std::bad_cast::~bad_cast(void)" (??1bad_cast@std@@UAE@XZ) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(xlocale.obj) : error LNK2005: "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(xlocale.obj) : error LNK2005: "public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ) 已经在 libcmt.lib(stdexcpt.obj) 中定义
libcpmt.lib(xlocale.obj) : error LNK2005: __vsprintf_s_l 已经在 libcmt.lib(vsnprnc.obj) 中定义
libcpmt.lib(xlocale.obj) : error LNK2005: _sprintf_s 已经在 libcmt.lib(sprintf.obj) 中定义
LINK : fatal error LNK1104: 无法打开文件“libcimt.lib”
静态连接失败


结帖率:100% (28/28)
 楼主| 发表于 2021-9-26 21:05:04 | 显示全部楼层   福建省福州市
已经自行解决了,有需要的朋友,可以参照下面的方式尝试:

1.切换编译器VC7

2.打开易语言目录下的tools\link.ini
在最后一行加上:extra_args=/NODEFAULTLIB:LIBC.LIB
回复 支持 反对

使用道具 举报

结帖率:100% (44/44)

签到天数: 4 天

发表于 2023-2-8 08:25:57 | 显示全部楼层   湖北省荆门市
自用模块的问题,你可以在精易模块里面提取,或者替换为精易模块。
回复 支持 反对

使用道具 举报

  高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报QQ: 793400750,邮箱:wp@125.la
网站简介:精易论坛成立于2009年,是一个程序设计学习交流技术论坛,隶属于揭阳市揭东区精易科技有限公司所有。
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备2025452707号) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表