今天在開發時,出現這個問題:..\3rd\log4cpp-1.1.1\log4cpp.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B0
原因是我把附加依賴庫(addtional dependencies)設置爲log4cpp.dll。
但事實上要設置爲:log4cppLIB.lib。
我想這是因爲不能解析.dll文件,所以報cannot read at 0x2b0的錯誤
今天在開發時,出現這個問題:..\3rd\log4cpp-1.1.1\log4cpp.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B0
原因是我把附加依賴庫(addtional dependencies)設置爲log4cpp.dll。
但事實上要設置爲:log4cppLIB.lib。
我想這是因爲不能解析.dll文件,所以報cannot read at 0x2b0的錯誤
shell腳本獲取腳本所在目錄 執行腳本的父目錄不一定是當前的工作目錄。 url=$(dirname $(readlink -f $0))