[cfe-dev] clang++: error: linker command failed with exit code 1
凌欢
linghuan713 at 126.com
Wed Sep 4 04:06:07 PDT 2013
hi, all:
I used the scan-build which version is checker-275 to scan iOS project ,it can get the 35 bugs , but from the following log, it seems
that something is wrong , can anynone give me tip?
ld: warning: directory not found for option '-L/Users/mqq/hudson/clang_weiyun_ipad/ExFrameworks/Trans/build/Debug'
ld: library not found for -lqcloud_trans
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Command /Applications/xcode4.6_sdk6.1/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ failed with exit code 1
And my build script is the following:
if [ -e report ] ;then
rm -r report;
fi
mkdir report
export XCODE_PATH=/Applications/xcode4.6_sdk6.1/Contents/Developer/usr/bin/xcodebuild
export CALNG_PATH=/Applications/xcode4.6_sdk6.1/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
export SDK=iphoneos6.1
export TARGET=WeiyunHD
export CONFIG=Debug
$XCODE_PATH -target $TARGET -configuration $CONFIG clean -sdk $SDK
/data/checker/scan-build -o report --use-c++=${CALNG_PATH}++ --use-cc=$CALNG_PATH $XCODE_PATH -target $TARGET -configuration $CONFIG -sdk $SDK
Thanks all.
BRs
Howard Ling
*****************************************************
E-mail: linghuan713 at 126.com
*****************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130904/f5e164ab/attachment.html>
More information about the cfe-dev
mailing list