使用SVN clang: error: linker command failed with exit code 1 (use -v to see invocation)

时间:2023-03-09 04:05:17
使用SVN clang: error: linker command failed with exit code 1 (use -v to see invocation)

然后上传到该项目SVN仓库上,例如,下面的错误再次发生再拉到本地编译

ld: library not found for -lxxxxxxxxxxxx
clang: error: linker command failed with exit code 1 (use -v to see invocation)

原因:

SVN在上传资源server时默认配置会把一些第三方的.a库文件等给忽略了。然后就造成这种错误。

解决的方法:

配置global-ignores文件

由于我用的是Cornerstone图像工具,Preferences -->Subversion -->General 。去掉默认的勾选状态,删掉 *.a标签。然后Save就可以,例如以下图。

使用SVN clang: error: linker command failed with exit code 1 (use -v to see invocation)

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvZHV4aW5mZW5nMjAxMA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="">

使用SVN clang: error: linker command failed with exit code 1 (use -v to see invocation)

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvZHV4aW5mZW5nMjAxMA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="">