我要compile我的程式
投影片里没有指定path应该是错的
后来我用以下指令
gcc hw1.c -o hw1 -I/usr/local/vision/include -lm -L/usr/local/vision/linux -lhvision
出现以下讯息
hw1.c: In function 'main':
hw1.c:9: warning: incompatible implicit declaration of built-in function 'exit'
hw1.c:15: warning: incompatible implicit declaration of built-in function 'exit'
/usr/bin/ld: skipping incompatible /usr/local/vision/linux/libhvision.a when searching for -lhvision
/usr/bin/ld: cannot find -lhvision
collect2: ld returned 1 exit status
就算我硬指定library file为libhvision.a还是会错误
想请问大家解决办法