精易论坛

标题: 易语言5.71静态编译问题LIBC.lib(crt0dat.obj) : error LNK2005: [打印本页]

作者: niyanbing    时间: 2017-11-23 11:16
标题: 易语言5.71静态编译问题LIBC.lib(crt0dat.obj) : error LNK2005:
昨天我试都还好好的,为什么今天就不能静态编译了啊?老提示错误,如下
正在检查重复名称...
正在预处理现行程序
正在编译易模块"美易自绘", 文件名: "E:\宝盒\1\客服端\ME_DUI.ec", 版本号: "3.2", 创建号: "1.1", 作者: "孤岛".
正在进行名称连接...
正在统计需要编译的子程序
正在编译...
正在生成主程序入口代码
程序代码编译成功
等待用户输入欲编译到的文件名
正在进行名称连接...
开始静态链接...
LIBC.lib(crt0dat.obj) : error LNK2005: __cinit already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __cexit already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __c_exit already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __C_Exit_Done already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __C_Termination_Done already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __exitflag already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __wpgmptr already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __pgmptr already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: ___winitenv already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __wenviron already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: ___initenv already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __environ already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: ___wargv already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: ___argv already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: ___argc already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __winminor already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __winmajor already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __winver already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __osver already defined in libcmt.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __umaskval already defined in libcmt.lib(crt0dat.obj)
E:\宝盒\1\客服端\技术支持中心助手 V2.5.exe : fatal error LNK1169: one or more multiply defined symbols found
静态连接失败



作者: 蓝翔电焊工    时间: 2017-11-23 11:19
支持库问题

补充内容 (2017-11-23 11:21):
http://bbs.eyuyan.com/read.php?tid=246957可以看看这个
作者: 影知    时间: 2017-11-23 11:22
连接器没有
作者: cloak    时间: 2017-11-23 11:24
易语言LIBC.lib(crt0dat.obj) : error LNK2005_百度经验 http://jingyan.baidu.com/article/e4d08ffd9a36200fd3f60d6f.html
作者: BinByte    时间: 2017-11-23 11:39
楼主我也是遇到过这个问题-解决地址:https://jingyan.baidu.com/article/e4d08ffd9a36200fd3f60d6f.html
作者: 道易有道    时间: 2017-11-23 12:00
如果不是正版易语言 5.6是最好的选择
作者: LYForever    时间: 2017-12-6 20:47
我也不会,求助

补充内容 (2017-12-6 20:49):
楼主,我会了,去https://jingyan.baidu.com/article/e4d08ffd9a36200fd3f60d6f.html吧!
作者: LYForever    时间: 2017-12-6 20:53
楼主,打开易语言文件位置,然后找到tools文件夹,在tools文件夹中找到link.ini,在link.ini最后边添加“extra_args=/NODEFAULTLIB:LIBC.LIB”就行了。如果不行就是lib的问题。安装vc6或其他的lib吧。疑惑的我刚才在白明那找的答案,谢谢了,可以用,亲测!
作者: zxc小强    时间: 2018-7-22 22:25
SHENGDE123 发表于 2017-12-6 20:53
楼主,打开易语言文件位置,然后找到tools文件夹,在tools文件夹中找到link.ini,在link.ini最后边添加“ex ...

谢谢,按照你的解决了。
作者: 901    时间: 2018-10-7 15:56
十分感谢
作者: ufoo    时间: 2021-8-5 20:34
cloak 发表于 2017-11-23 11:24
易语言LIBC.lib(crt0dat.obj) : error LNK2005_百度经验 http://jingyan.baidu.com/article/e4d08ffd9a3620 ...

感谢,相同情况
作者: xiaoyi78418    时间: 2021-8-14 14:59
cloak 发表于 2017-11-23 11:24
易语言LIBC.lib(crt0dat.obj) : error LNK2005_百度经验 http://jingyan.baidu.com/article/e4d08ffd9a3620 ...

非常感谢
作者: xxhaishixx    时间: 2021-11-14 17:03
cloak 发表于 2017-11-23 11:24
易语言LIBC.lib(crt0dat.obj) : error LNK2005_百度经验 http://jingyan.baidu.com/article/e4d08ffd9a3620 ...

你这种方法有可能会导致程序为:无效的win32程序。
作者: 9638594    时间: 2022-4-26 14:19
坂本投研 发表于 2017-11-23 12:00
如果不是正版易语言 5.6是最好的选择

感谢大哥的分享
作者: 苏烟式    时间: 2024-9-4 21:27
右键易语言-打开文件位置

打开tools文件夹找到link.ini

打开link.ini,在文本末端添加extra_args=/NODEFAULTLIB:LIBC.LIB




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