/usr/bin/ld: cannot open output file bin/Release/readfile.exe: No such file or directory
collect2: ld returned 1 exit status
make: *** [bin/Release/readfile.exe] 错误 1
make:离开目录“/home/shawn/readfile”
...全文
4547打赏收藏
执行make命令的时候出现以下错误,求高手解答
/usr/bin/ld: cannot open output file bin/Release/readfile.exe: No such file or directory collect2: ld returned 1 exit status make: *** [bin/Release/readfile.exe] 错误 1 make:离开目录“/home/shawn/readfile”
/usr/bin/ld: cannot open output file bin/Release/readfile.exe: No such file or directory这句话是指没能找到相应的文件或目录。是不是你的路径有问题哦。
有时,我的目录下本来是有该目录的,但它硬是说找不到。但是后来我发现了;有时候在绝对路径下:以/开头的就没必要在路劲开头再写/。如下:
root@linux:/# cd var就不能写成root@linux:/#cd /var