然后上传到该项目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)_a标签


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