gpt4 book ai didi

c - (.文本+0xb6f): undefined reference to `src_simple'

转载 作者:行者123 更新时间:2023-11-30 19:22:45 33 4
gpt4 key购买 nike

我正在使用 libresample 对数据进行重新采样。我在我的 C 代码中包含了samplerate.h,但是当我编译它时,出现错误显示(.text+0xb6f):对“src_simple”的 undefined reference 是否有人有解决方案。谢谢

最佳答案

根据the gcc manual, "link options" section ,您应该能够链接到 libresample,前提是 libresample.a 存在于系统用于库的任何目录中,通过调用 gcc your_file.c -l重新采样

关于c - (.文本+0xb6f): undefined reference to `src_simple' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15261387/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com