作者yshihyu (yshihyu)
看板LinuxDev
标题[问题] tcc 指定函数库路径
时间Mon May 16 00:58:44 2016
http://bellard.org/tcc/
tcc-0.9.26
./configure && make
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Hello world\n");
return 0;
}
./tcc hello.c -I include/ -L. -o test
tcc: error: file '/usr/local/lib/tcc/libtcc1.a' not found
libtcc1.a 是在当前目录下加上 -L. 为什麽还是不行?
後来我测试过安装(make install)後是可以正常执行编译出来的执行档,
那闷为什麽指定 -L. 却不行 , tcc -help 有看到支援 -L 参数
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 175.180.117.99
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/LinuxDev/M.1463331528.A.21D.html
1F:→ jserv: 因为 libtcc1.a 不透过 search path,请见原始程式码 05/21 23:24