gpt4 book ai didi

c - 与 gcc 链接时出错?

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

我运行以下命令来链接我项目中的不同文件。

/opt/gcc-4.7-cilkplus/bin/gcc -g -Wall -l /opt/gcc-4.7-cilkplus/lib64/ -o exec main.o \
mysql-client.o databaseConnection-common.o murmurhash3.o bloom-filter.o
`mysql_config --cflags --libs\` -lcilkrts

注意选项-l/opt/gcc-4.7-cilkplus/lib64/

当我运行这个命令时,我得到这个错误:

/usr/bin/ld: cannot find -l/opt/gcc-4.7-cilkplus/lib64/

但是这个目录存在于我的系统中。任何人都可以告诉错误。

最佳答案

-l (el) 后面应该跟一个库,而不是一个目录。也许你的意思是 -L 或 -I(眼睛)

关于c - 与 gcc 链接时出错?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11092012/

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