gpt4 book ai didi

linux - 在 Ubuntu for RedHat 上使用 G++ 构建

转载 作者:太空宇宙 更新时间:2023-11-04 09:07:16 25 4
gpt4 key购买 nike

在 Ubuntu 上构建并使用 GCC 时,有什么方法可以链接到 RedHat 静态库吗?

最佳答案

将 RedHat 库和头文件复制到保留目录结构的目录中,并为 GCC 提供 --sysroot 指令以告诉它在该目录中查找作为搜索库和头文件的前缀

关于linux - 在 Ubuntu for RedHat 上使用 G++ 构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8413474/

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