精易论坛

标题: 静态编译失败 [打印本页]

作者: whpseb66    时间: 昨天 21:24
标题: 静态编译失败
正在进行名称连接...
开始静态链接...
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 00000017 already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 00000018 already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 00000019 already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 0000001A already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 0000001B already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 0000001C already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 0000001D already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 0000001E already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 0000001F already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 00000020 already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 00000021 already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 00000022 already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 00000023 already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 00000024 already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 00000025 already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 00000026 already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 00000027 already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 00000028 already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 00000029 already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 0000002A already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 0000002B already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 0000002C already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 0000002D already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 0000002E already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 0000002F already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 00000030 already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 00000031 already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 00000032 already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 00000033 already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 00000034 already defined in encrypt_static.lib(encrypt.obj)
cjtb_static.lib(cjtb_static.obj) : error LNK2005: 00000035 already defined in encrypt_static.lib(encrypt.obj)
静态连接失败


服了。不知道那里的问题。
谁远程帮我解决给一百豆 有没有会的


作者: Marvin    时间: 昨天 21:24
这两个库包含了相同的函数实现,链接器不知道该用哪一个,所以报错。很可能是你同时引用了多个加密/算法相关的支持库,或者这两个库有共同的依赖,但都被静态链接进来了,去掉重复的支持库试下看看
作者: whpseb66    时间: 昨天 21:25
问豆包问了一下午没解决 前几天还能静态编译的
作者: whpseb66    时间: 昨天 21:47
Marvin 发表于 2026-8-9 21:38
这两个库包含了相同的函数实现,链接器不知道该用哪一个,所以报错。很可能是你同时引用了多个加密/算法相 ...

刚刚试着卸载了超级加解密支持库,结果直接打不开源码了。这个支持库真坑爹啊
作者: z573277679    时间: 昨天 21:49
whpseb66 发表于 2026-8-9 21:47
刚刚试着卸载了超级加解密支持库,结果直接打不开源码了。这个支持库真坑爹啊 ...

你加我吧
作者: whpseb66    时间: 昨天 22:04
刚刚蓝屏 电脑自动重启了,,,然后好了,,,太抽象了




欢迎光临 精易论坛 (https://bbs.ijingyi.com/) Powered by Discuz! X3.4