-
Notifications
You must be signed in to change notification settings - Fork 111
Description
clang++: error: unable to execute command: Segmentation fault (core dumped)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Obfuscator-LLVM clang version 8.0.0 (based on Obfuscator-LLVM 8.0.0)
Target: aarch64-none-linux-android21
Thread model: posix
InstalledDir: /home/wanbai/vmp/android-ndk-r18b/toolchains/llvm/prebuilt/linux-x86_64/bin
clang++: note: diagnostic msg: PLEASE submit a bug report to http://o-llvm.org and include the crash backtrace, preprocessed source, and associated run script.
clang++: note: diagnostic msg:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: /tmp/main-a64249.cpp
clang++: note: diagnostic msg: /tmp/main-a64249.sh
clang++: note: diagnostic msg:
这是编译器错误提示,下面是我的main.cpp内容#include
#include
#include
std::string concatenateStrings(const std::vector& vec) {
std::string result(vec.begin(), vec.end());
return result;
}
int main() {
std::vector vec = {'h', 't', 't', 'p', ':', '/', '/','w','.','t','3','y','a','n','z','h','e','n','g',};
std::string str = concatenateStrings(vec);
std::cout << str << std::endl;
return 0;
}