ld: Unsatisfied symbol 解决办法

本文详细解释了在使用指定目录的动态链接库和静态库时遇到的符号未找到问题的原因,并提供了解决方法。通过先安装动态链接库和静态库的源码目录并进行makeinstall操作,可以确保程序正确引用所需符号。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

ll/newbill/lib
ld: Unsatisfied symbol "g_sBillUserString" in file acctfav.o
ld: Unsatisfied symbol "g_sBillUserName" in file acctfav.o
ld: Unsatisfied symbol "g_sBillUserPass" in file acctfav.o

 

原因:

链接时使用指定目录的动态链接库和静态库。但由于此几个变量定义在动态链接库或静态库的源码中,需要先进动态链接库和静态库的源码目录make install,这样将新的动态链接库和静态库拷入相应目录。免得找不到。

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'businessTxgWjcfCfFlowController': Unsatisfied dependency expressed through field 'templateService': Error creating bean with name 'templateServiceImpl': Unsatisfied dependency expressed through field 'templateJsonService': Error creating bean with name 'templateJsonServiceImpl': Unsatisfied dependency expressed through field 'serviceUtil': Error creating bean with name 'serviceUtil': Unsatisfied dependency expressed through field 'documentApi': Error creating bean with name 'documentController': Unsatisfied dependency expressed through field 'taskApi': Error creating bean with name 'taskForFileController': Unsatisfied dependency expressed through field 'taskService': Error creating bean with name 'taskServiceImpl': Unsatisfied dependency expressed through field 'operatorService': Error creating bean with name 'operatorServiceImpl': Unsatisfied dependency expressed through field 'taskUtil': Error creating bean with name 'taskUtil': Unsatisfied dependency expressed through field 'msgUtil': Error creating bean with name 'msgUtil': Bean with name 'msgUtil' has been injected into other beans [delegateServiceImpl] in its raw version as part of a circular reference, but has eventually been wrapped. This means that said other beans do not use the final version of the bean. This is often the result of over-eager type matching - consider using 'getBeanNamesForType' with the 'allowEagerInit' flag turned off, for example.
最新发布
06-30
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值