Hi3559AV100编译报错undefined reference to `strncpy_s' `memmove_s'

1、错误打印

在编译海思hi3559av100时候报错如下: 

V100R001C01SPC001/app/../platform/hi3559a/lib/libmpi.a(mpi_vb.o): In function `HI_MPI_VB_CreatePool':
mpi_vb.c:(.text.HI_MPI_VB_CreatePool+0xb8): undefined reference to `strncpy_s'
V100R001C01SPC001/app/../platform/hi3559a/lib/libmpi.a(mpi_vb.o): In function `HI_MPI_VB_GetBlock':
mpi_vb.c:(.text.HI_MPI_VB_GetBlock+0x118): undefined reference to `strncpy_s'
V100R001C01SPC001/app/../platform/hi3559a/lib/libmpi.a(mpi_sys.o): In function `HI_MPI_SYS_MmzAlloc':
mpi_sys.c:(.text.HI_MPI_SYS_MmzAlloc+0xd8): undefined reference to `strncpy_s'
mpi_sys.c:(.text.HI_MPI_SYS_MmzAlloc+0xf0): undefined reference to `strncpy_s'
V100R001C01SPC001/app/../platform/hi3559a/lib/libmpi.a(mpi_sys.o): In function `HI_MPI_SYS_MmzAlloc_Cached':
mpi_sys.c:(.text.HI_MPI_SYS_MmzAlloc_Cached+0xd8): undefined reference to `strncpy_s'
V100R001C01SPC001/app/../platform/hi3559a/lib/libmpi.a(mpi_sys.o):mpi_sys.c:(.text.HI_MPI_SYS_MmzAlloc_Cached+0xf0): more undefined references to `strncpy_s' follow
V100R001C01SPC001/app/../platform/hi3559a/lib/libmpi.a(mpi_adec.o): In function `MPI_ADEC_SendStream':
mpi_adec.c:(.text.MPI_ADEC_SendStream+0x600): undefined reference to `memmove_s'
V100R001C01SPC001/app/../platform/hi3559a/lib/libupvqe.a(hi_upvqe_wrap.o): In function `UPVQE_OutCacheRead':
(.text.UPVQE_OutCacheRead+0x158): undefined reference to `memmove_s'
V100R001C01SPC001/app/../platform/hi3559a/lib/libupvqe.a(hi_upvqe_wrap.o): In function `UPVQE_CacheProcessFrame':
(.text.UPVQE_CacheProcessFrame+0x240): undefined reference to `memmove_s'
(.text.UPVQE_CacheProcessFrame+0x28c): undefined reference to `memmove_s'
V100R001C01SPC001/app/../platform/hi3559a/lib/libdnvqe.a(hi_dnvqe_wrap.o): In function `DNVQE_CacheRead':
(.text.DNVQE_CacheRead+0x158): undefined reference to `memmove_s'

2.解决方案

原先makefile如下:

把libmpi库提到最前面,编译即可通过。可能其他库有使用libmpi.a吧

 

  • 3
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值