开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

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

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


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

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

查看: 1090|回复: 1
收起左侧

[已解决] VC2019问题

 关闭 [复制链接]
结帖率:88% (135/154)
发表于 2021-3-20 18:29:45 | 显示全部楼层 |阅读模式   河北省保定市
20精币
VC2019_Myth_LINKER问题

静态编译提示:

开始静态链接...
Microsoft (R) Incremental Linker Version 14.28.29335.0
Copyright (C) Microsoft Corporation.      BY>>>>MYTH<<<<  

LINK : fatal error LNK1104: 无法打开文件“LIBC.lib”
静态连接失败


用其他链接库的LIBC就会输出其他错误

LIBC.lib(fpinit.obj) : error LNK2005: __fltused 已经在 libcmt.lib(fltused.obj) 中定义
libvcruntime.lib(trnsctrl.obj) : error LNK2005: "void * __cdecl _CallCatchBlock2(struct EHRegistrationNode *,struct _s_FuncInfo const *,void *,int,unsigned long)" (?_CallCatchBlock2@@YAPAXPAUEHRegistrationNode@@PBU_s_FuncInfo@@PAXHK@Z) 已经在 LIBC.lib(trnsctrl.obj) 中定义
libvcruntime.lib(trnsctrl.obj) : error LNK2005: "int __cdecl _CallSETranslator(struct EHExceptionRecord *,struct EHRegistrationNode *,void *,void *,struct _s_FuncInfo const *,int,struct EHRegistrationNode *)" (?_CallSETranslator@@YAHPAUEHExceptionRecord@@PAUEHRegistrationNode@@PAX2PBU_s_FuncInfo@@H1@Z) 已经在 LIBC.lib(trnsctrl.obj) 中定义
libvcruntime.lib(trnsctrl.obj) : error LNK2005: "void __stdcall _JumpToContinuation(void *,struct EHRegistrationNode *)" (?_JumpToContinuation@@YGXPAXPAUEHRegistrationNode@@@Z) 已经在 LIBC.lib(trnsctrl.obj) 中定义
libvcruntime.lib(trnsctrl.obj) : error LNK2005: "void __stdcall _UnwindNestedFrames(struct EHRegistrationNode *,struct EHExceptionRecord *)" (?_UnwindNestedFrames@@YGXPAUEHRegistrationNode@@PAUEHExceptionRecord@@@Z) 已经在 LIBC.lib(trnsctrl.obj) 中定义
libvcruntime.lib(trnsctrl.obj) : error LNK2005: ___CxxFrameHandler 已经在 LIBC.lib(trnsctrl.obj) 中定义
libvcruntime.lib(trnsctrl.obj) : error LNK2005: ___CxxLongjmpUnwind@4 已经在 LIBC.lib(trnsctrl.obj) 中定义
libvcruntime.lib(exsup.obj) : error LNK2005: __NLG_Dispatch 已经在 LIBC.lib(exsup.obj) 中定义
libvcruntime.lib(exsup.obj) : error LNK2005: __NLG_Return2 已经在 LIBC.lib(exsup.obj) 中定义
libvcruntime.lib(exsup.obj) : error LNK2005: __NLG_Destination 已经在 LIBC.lib(exsup.obj) 中定义
libvcruntime.lib(exsup.obj) : error LNK2005: __global_unwind2 已经在 LIBC.lib(exsup.obj) 中定义
libvcruntime.lib(exsup.obj) : error LNK2005: __local_unwind2 已经在 LIBC.lib(exsup.obj) 中定义
libvcruntime.lib(exsup.obj) : error LNK2005: __abnormal_termination 已经在 LIBC.lib(exsup.obj) 中定义
libvcruntime.lib(exsup.obj) : error LNK2005: __NLG_Notify1 已经在 LIBC.lib(exsup.obj) 中定义
libvcruntime.lib(exsup.obj) : error LNK2005: __NLG_Notify 已经在 LIBC.lib(exsup.obj) 中定义
libucrt.lib(_file.obj) : error LNK2005: __cflush 已经在 LIBC.lib(_file.obj) 中定义
libucrt.lib(_file.obj) : error LNK2005: __iob 已经在 LIBC.lib(_file.obj) 中定义
libucrt.lib(setmode.obj) : error LNK2005: __setmode 已经在 LIBC.lib(setmode.obj) 中定义
libucrt.lib(exit.obj) : error LNK2005: __c_exit 已经在 LIBC.lib(crt0dat.obj) 中定义
libucrt.lib(exit.obj) : error LNK2005: __cexit 已经在 LIBC.lib(crt0dat.obj) 中定义
libucrt.lib(exit.obj) : error LNK2005: __exit 已经在 LIBC.lib(crt0dat.obj) 中定义
libucrt.lib(exit.obj) : error LNK2005: _exit 已经在 LIBC.lib(crt0dat.obj) 中定义
libucrt.lib(ncommode.obj) : error LNK2005: __commode 已经在 LIBC.lib(ncommode.obj) 中定义
libucrt.lib(ctype.obj) : error LNK2005: __pctype 已经在 LIBC.lib(ctype.obj) 中定义
libucrt.lib(ctype.obj) : error LNK2005: __pwctype 已经在 LIBC.lib(ctype.obj) 中定义
libucrt.lib(strtod.obj) : error LNK2005: _strtod 已经在 LIBC.lib(strtod.obj) 中定义
libucrt.lib(strnlen.obj) : error LNK2005: _wcslen 已经在 LIBC.lib(wcslen.obj) 中定义
libucrt.lib(strtox.obj) : error LNK2005: _strtol 已经在 LIBC.lib(strtol.obj) 中定义
静态连接失败



最佳答案

查看完整内容

link.ini里 extra_args=/link legacy_stdio_definitions.lib /force 加个参数 不过程序可能会不稳定

回答提醒:如果本帖被关闭无法回复,您有更好的答案帮助楼主解决,请发表至 源码区 可获得加分喔。
友情提醒:本版被采纳的主题可在 申请荣誉值 页面申请荣誉值,获得 1点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。
快捷通道:申请荣誉值无答案申请取消悬赏投诉有答案未采纳为最佳
结帖率:100% (5/5)

签到天数: 14 天

发表于 2021-3-20 18:29:46 | 显示全部楼层   安徽省安庆市
link.ini里
extra_args=/link legacy_stdio_definitions.lib /force  加个参数  
不过程序可能会不稳定
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

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

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

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