llvm/clang编译出错问题

我是直接下载llvm的源码编译出来的clang,然后编写了一个简单的源程序,包含一些STL的简单操作,在使用该clang编译该程序时,出现了一些"cannot compile this try statement yet"的try、throw错误提示,但在vs下编译成功的,很是迷惑,希望各位能指点一下,谢谢。。

4个回答

还是要看具体代码,有些语法不同编译器支持不一样

anxiaosheng2
此余生安 具体代码看截图,谢谢
大约 5 年之前 回复

图片说明
图片说明
图片说明
具体代码很简单,仅仅是cout、vector的_push_back,问题是出在vector或者STL内部的一些try-catch-throw语句上

我想知道的是,为什么会try-catch-throw语句上编译不过,是不是直接从llvm官网上下载源码编译出的clang还缺少什么,求解,谢谢

_TRY_CATCH是VC的宏,
c++应该用try

anxiaosheng2
此余生安 好像是clang的异常处理问题,具体还没怎么看懂http://clang.llvm.org/docs/MSVCCompatibility.html
大约 5 年之前 回复
anxiaosheng2
此余生安 是的,在编译之前,_TRY_CATCH已经被try替换了,看出错提示就知道
大约 5 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
CentOS编译LLVM遇到的HOST GCC版本问题
操作系统原来自带的gcc版本是4.8.5,因为安装llvm要求是5.1以上版 本,所以后来正常安装了GCC8.3.0,CMAKE 3.12.1,然后下载llvm-project,按照如下链接指示安装: http://llvm.org/docs/CMake.html 发现执行到"cmake path/to/llvm/source/root"时报错。错误信息如下: [root@jzl-cloud-01 llvm]# cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 /home/falcon/h265/llvm-project/llvm -- Could NOT find Z3: Found unsuitable version "0.0.0", but required is at least "4.7.1" (found Z3_LIBRARIES-NOTFOUND) CMake Error at cmake/modules/CheckCompilerVersion.cmake:38 (message): Host GCC version must be at least 5.1, your version is 4.8.5. Call Stack (most recent call first): cmake/modules/CheckCompilerVersion.cmake:48 (check_compiler_version) cmake/config-ix.cmake:13 (include) CMakeLists.txt:624 (include) -- Configuring incomplete, errors occurred! See also "/home/falcon/h265/llvm/CMakeFiles/CMakeOutput.log". [root@jzl-cloud-01 llvm]# cmake /home/falcon/h265/llvm-project/llvm -- Could NOT find Z3: Found unsuitable version "0.0.0", but required is at least "4.7.1" (found Z3_LIBRARIES-NOTFOUND) CMake Error at cmake/modules/CheckCompilerVersion.cmake:38 (message): Host GCC version must be at least 5.1, your version is 4.8.5. Call Stack (most recent call first): cmake/modules/CheckCompilerVersion.cmake:48 (check_compiler_version) cmake/config-ix.cmake:13 (include) CMakeLists.txt:624 (include) -- Configuring incomplete, errors occurred! See also "/home/falcon/h265/llvm/CMakeFiles/CMakeOutput.log". 请问上面提到的HOST GCC版本过低的问题该如何解决?
IncludeC++Support项目直接报错
最近在把开发环境往Linux上整,有些操作比较方便,但是我发现我在Androidstudio创建项目时如果把Include C++ Support选项勾上的话,创建出来的项目直接就是错的,百度了半天也没解决,ndk卸载安装好几次了,也试了ndk-r12,ndk-r13,还是不行,求帮助啊,折腾的不要不要的。错误如下: External Native Build Issues Build command failed. Error while executing process /home/majes/Android/Sdk/cmake/3.6.4111459/bin/cmake with arguments {-H/home/majes/AndroidStudioProjects/MyApplication2/app -B/home/majes/AndroidStudioProjects/MyApplication2/app/.externalNativeBuild/cmake/release/armeabi -DANDROID_ABI=armeabi -DANDROID_PLATFORM=android-15 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/majes/AndroidStudioProjects/MyApplication2/app/build/intermediates/cmake/release/obj/armeabi -DCMAKE_BUILD_TYPE=Release -DANDROID_NDK=/home/majes/Android/Sdk/ndk-bundle -DCMAKE_CXX_FLAGS= -DCMAKE_TOOLCHAIN_FILE=/home/majes/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/home/majes/Android/Sdk/cmake/3.6.4111459/bin/ninja -GAndroid Gradle - Ninja} -- Check for working C compiler: /home/majes/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -- Check for working C compiler: /home/majes/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -- broken It fails with the following output: Change Dir: /home/majes/AndroidStudioProjects/MyApplication2/app/.externalNativeBuild/cmake/release/armeabi/CMakeFiles/CMakeTmp Run Build Command:"/home/majes/Android/Sdk/cmake/3.6.4111459/bin/ninja" "cmTC_af686" [1/2] Building C object CMakeFiles/cmTC_af686.dir/testCCompiler.c.o FAILED: /home/majes/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=armv5te-none-linux-androideabi --gcc-toolchain=/home/majes/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/majes/Android/Sdk/ndk-bundle/sysroot -isystem /home/majes/Android/Sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=15 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -o CMakeFiles/cmTC_af686.dir/testCCompiler.c.o -c /home/majes/AndroidStudioProjects/MyApplication2/app/.externalNativeBuild/cmake/release/armeabi/CMakeFiles/CMakeTmp/testCCompiler.c /home/majes/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory ninja: build stopped: subcommand failed. CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt -- Configuring incomplete, errors occurred! See also "/home/majes/AndroidStudioProjects/MyApplication2/app/.externalNativeBuild/cmake/release/armeabi/CMakeFiles/CMakeOutput.log". See also "/home/majes/AndroidStudioProjects/MyApplication2/app/.externalNativeBuild/cmake/release/armeabi/CMakeFiles/CMakeError.log". Build command failed. Error while executing process /home/majes/Android/Sdk/cmake/3.6.4111459/bin/cmake with arguments {-H/home/majes/AndroidStudioProjects/MyApplication2/app -B/home/majes/AndroidStudioProjects/MyApplication2/app/.externalNativeBuild/cmake/debug/armeabi -DANDROID_ABI=armeabi -DANDROID_PLATFORM=android-15 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/majes/AndroidStudioProjects/MyApplication2/app/build/intermediates/cmake/debug/obj/armeabi -DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=/home/majes/Android/Sdk/ndk-bundle -DCMAKE_CXX_FLAGS= -DCMAKE_TOOLCHAIN_FILE=/home/majes/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=/home/majes/Android/Sdk/cmake/3.6.4111459/bin/ninja -GAndroid Gradle - Ninja} -- Check for working C compiler: /home/majes/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -- Check for working C compiler: /home/majes/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -- broken It fails with the following output: Change Dir: /home/majes/AndroidStudioProjects/MyApplication2/app/.externalNativeBuild/cmake/debug/armeabi/CMakeFiles/CMakeTmp Run Build Command:"/home/majes/Android/Sdk/cmake/3.6.4111459/bin/ninja" "cmTC_2e591" [1/2] Building C object CMakeFiles/cmTC_2e591.dir/testCCompiler.c.o FAILED: /home/majes/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=armv5te-none-linux-androideabi --gcc-toolchain=/home/majes/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/majes/Android/Sdk/ndk-bundle/sysroot -isystem /home/majes/Android/Sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=15 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -o CMakeFiles/cmTC_2e591.dir/testCCompiler.c.o -c /home/majes/AndroidStudioProjects/MyApplication2/app/.externalNativeBuild/cmake/debug/armeabi/CMakeFiles/CMakeTmp/testCCompiler.c /home/majes/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory ninja: build stopped: subcommand failed. CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt -- Configuring incomplete, errors occurred! See also "/home/majes/AndroidStudioProjects/MyApplication2/app/.externalNativeBuild/cmake/debug/armeabi/CMakeFiles/CMakeOutput.log". See also "/home/majes/AndroidStudioProjects/MyApplication2/app/.externalNativeBuild/cmake/debug/armeabi/CMakeFiles/CMakeError.log". /home/majes/Android/Sdk/cmake/3.6.4111459/share/cmake-3.6/Modules/CMakeTestCCompiler.cmake Error:(61, 0) The C compiler "/home/majes/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang" is not able to compile a simple test program. Error:(61, 0) The C compiler "/home/majes/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang" is not able to compile a simple test program.
webrtc编译Android版本编译参数is_clang=false时,编译报错,is_clang=true时,编译成功。
[2274/3376] LINK ./rgba_to_i420_converter FAILED: rgba_to_i420_converter exe.unstripped/rgba_to_i420_converter python "../../build/toolchain/gcc_link_wrapper.py" --output="./rgba_to_i420_converter" --strip="../../buildtools/third_party/eu-strip/bin/eu-strip" --unstripped-file="./exe.unstripped/rgba_to_i420_converter" -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,--as-needed -fuse-ld=gold -Wl,--icf=all -Wl,--exclude-libs=libgcc.a -Wl,--exclude-libs=libvpx_assembly_arm.a --target=aarch64-linux-android -Wl,-mllvm,-enable-machine-outliner=never -Wl,--warn-shared-textrel -Wl,-O2 -Wl,--gc-sections -nodefaultlibs --sysroot=../../third_party/android_ndk/platforms/android-21/arch-arm64 -nostdlib -Wl,--warn-shared-textrel -pie -Bdynamic -Wl,-z,nocopyreloc -Wl,--dynamic-linker,/system/bin/linker64 -L../../third_party/android_ndk/sources/cxx-stl/llvm-libc++/libs/arm64-v8a -o "./exe.unstripped/rgba_to_i420_converter" -Wl,--start-group @"./rgba_to_i420_converter.rsp" -Wl,--end-group ../../third_party/android_ndk/platforms/android-21/arch-arm64/usr/lib/crtbegin_dynamic.o -lc -lgcc_s -lm -lrt -landroid_support ../../third_party/android_ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x/libgcc.a -ldl -llog -lGLESv2 ../../third_party/android_ndk/platforms/android-21/arch-arm64/usr/lib/crtend_android.o /usr/bin/ld.gold: fatal error: obj/rtc_tools/rgba_to_i420_converter/converter.o: unsupported ELF machine number 183 clang: error: linker command failed with exit code 1 (use -v to see invocation)
LLVM3.3 CLANG++编译C++代码为BC文件,无法捕获异常
add.cpp: int add_t(int a) throw(int ) { return a + a; } extern "C" { int add(int a) throw(int) { int ret = -100; try { ret = add_t(a); throw 1; } catch (int e) { ret = -200; } return ret; } } 在main.cpp中加载bc文件,Module* mod = ParseIRFile("add.bc", error, context);然后调用add函数,报错 terminate called after throwing an instance of 'int' Aborted 去掉add.cpp中的throw 1;可以正常调用。 这个异常在bc中无法捕获吗?
android studio 3.0 preview 创建添加C支持的项目时报错
错误如下: Build command failed. Error while executing process D:\Android\AndroidSDK\cmake\3.6.4111459\bin\cmake.exe with arguments {-HD:\Android\MyProject\TestC\app -BD:\Android\MyProject\TestC\app\.externalNativeBuild\cmake\release\armeabi -GAndroid Gradle - Ninja -DANDROID_ABI=armeabi -DANDROID_NDK=D:\Android\AndroidSDK\ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\Android\MyProject\TestC\app\build\intermediates\cmake\release\obj\armeabi -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=D:\Android\AndroidSDK\cmake\3.6.4111459\bin\ninja.exe -DCMAKE_TOOLCHAIN_FILE=D:\Android\AndroidSDK\ndk-bundle\build\cmake\android.toolchain.cmake -DANDROID_PLATFORM=android-15 -DCMAKE_CXX_FLAGS=-std=c++11 -frtti -fexceptions} -- Check for working C compiler: D:/Android/AndroidSDK/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- Check for working C compiler: D:/Android/AndroidSDK/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- broken CMake Error at D:/Android/AndroidSDK/cmake/3.6.4111459/share/cmake-3.6/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "D:/Android/AndroidSDK/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: D:/Android/MyProject/TestC/app/.externalNativeBuild/cmake/release/armeabi/CMakeFiles/CMakeTmp Run Build Command:"D:\Android\AndroidSDK\cmake\3.6.4111459\bin\ninja.exe" "cmTC_80963" [1/2] Building C object CMakeFiles/cmTC_80963.dir/testCCompiler.c.o [2/2] Linking C executable cmTC_80963 ninja: fatal: CreateProcess: ����IJ�����Ҫ������ CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt -- Configuring incomplete, errors occurred! See also "D:/Android/MyProject/TestC/app/.externalNativeBuild/cmake/release/armeabi/CMakeFiles/CMakeOutput.log". See also "D:/Android/MyProject/TestC/app/.externalNativeBuild/cmake/release/armeabi/CMakeFiles/CMakeError.log".那些乱码是“请求的操作需要提升”有谁知道这是这么回事么?
android 7.1源码编译 出错
以下是shell上的打印 ``` Starting build with ninja [476/5393] ninja: Entering directory `.' [ 1% 8/468] target Executable: dexdump (out/target/product/px3/obj/EXECUTABLES/dexdump_intermediates/LINKED/dexdump) FAILED: /bin/bash -c "prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -pie -nostdlib -Bdynamic -Wl,-dynamic-linker,/system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc -Lout/target/product/ px3/obj/lib -Wl,-rpath-link=out/target/product/px3/obj/lib out/target/product/px3/obj/lib/crtbegin_dynamic.o out/target/product/px3/obj/EXECUTABLES/dexdump_intermediates/DexDump.o -Wl ,--whole-archive -Wl,--no-whole-archive out/target/product/px3/obj/STATIC_LIBRARIES/libdex_intermediates/libdex.a out/target/product/px3/obj/STATIC_LIBRARIES/libbase_intermediates/libbase.a out/targ et/product/px3/obj/STATIC_LIBRARIES/libunwind_llvm_intermediates/libunwind_llvm.a out/target/product/px3/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/libcompiler_rt-extras.a prebuilts/gcc/ linux-x86/arm/arm-linux-androideabi-4.9/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/lib/armv7-a/libatomic.a prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/../li b/gcc/arm-linux-androideabi/4.9/armv7-a/libgcc.a -lz -llog -lutils -lc++ -ldl -lc -lm -o out/target/product/px3/obj/EXECUTABLES/dexdump_intermediates/LINKED/dexdump -Wl,-z,noexecstack -Wl,-z,relro -W l,-z,now -Wl,--build-id=md5 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--icf=safe -Wl,--hash-style=gnu -Wl,--no-undefined-version -Wl,--fix-cortex-a8 -target arm-linux-androideabi -Bprebuilts /gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wl,--exclude-libs,libunwind_llvm.a -Wl,--no-undefined out/target/product/px3/obj/lib/crtend_android.o" dalvik/dexdump/DexDump.cpp:517: error: undefined reference to 'dexReadAndVerifyClassData(unsigned char const**, unsigned char const*)' dalvik/dexdump/DexDump.cpp:627: error: undefined reference to 'dexDecodeDebugInfo(DexFile const*, DexCode const*, char const*, unsigned int, unsigned int, int (*)(void*, unsigned int, unsigned int), voi d (*)(void*, unsigned short, unsigned int, unsigned int, char const*, char const*, char const*), void*)' dalvik/dexdump/DexDump.cpp:653: error: undefined reference to 'dexDecodeDebugInfo(DexFile const*, DexCode const*, char const*, unsigned int, unsigned int, int (*)(void*, unsigned int, unsigned int), voi d (*)(void*, unsigned short, unsigned int, unsigned int, char const*, char const*, char const*), void*)' dalvik/libdex/DexProto.h:143: error: undefined reference to 'dexProtoCopyMethodDescriptor(DexProto const*)' dalvik/dexdump/DexDump.cpp:890: error: undefined reference to 'dexGetOpcodeName(Opcode)' dalvik/dexdump/DexDump.cpp:1055: error: undefined reference to 'gDexOpcodeInfo' dalvik/dexdump/DexDump.cpp:845: error: undefined reference to 'gDexOpcodeInfo' dalvik/dexdump/DexDump.cpp:1120: error: undefined reference to 'dexDecodeInstruction(unsigned short const*, DecodedInstruction*)' dalvik/dexdump/DexDump.cpp:1128: error: undefined reference to 'gDexOpcodeInfo' dalvik/libdex/DexProto.h:143: error: undefined reference to 'dexProtoCopyMethodDescriptor(DexProto const*)' dalvik/dexdump/DexDump.cpp:1388: error: undefined reference to 'dexReadAndVerifyClassData(unsigned char const**, unsigned char const*)' dalvik/dexdump/DexDump.cpp:1704: error: undefined reference to 'dexReadAndVerifyClassData(unsigned char const**, unsigned char const*)' dalvik/dexdump/DexDump.cpp:1795: error: undefined reference to 'dexOpenAndMap(char const*, char const*, MemMapping*, bool)' dalvik/dexdump/DexDump.cpp:1804: error: undefined reference to 'dexFileParse(unsigned char const*, unsigned int, int)' dalvik/dexdump/DexDump.cpp:1820: error: undefined reference to 'sysReleaseShmem(MemMapping*)' dalvik/dexdump/DexDump.cpp:1822: error: undefined reference to 'dexFileFree(DexFile*)' dalvik/dexdump/DexDump.cpp:1820: error: undefined reference to 'sysReleaseShmem(MemMapping*)' clang++: error: linker command failed with exit code 1 (use -v to see invocation) [ 1% 8/468] Ensure Jack server is installed and started Jack server already installed in "/home2/hxw/.jack-server" Server is already running ``` 我已经试过改了jack的服务端口了 .jack .jack-setting .jack-server/config.properties 里面的地址都改了还是不行 据说不是jack的问题, jack错误只是编译错误引起的。 在网上搜 DexDump都只能搜到一些教怎么单独编译之类的教程 没找到有类似错误的
LLVM修改stackprotector.cpp
我修改了LLVM的stackprotector.cpp文件后使用clang -fstack-protector编译,为什么没有改变?怎样使用固定寄存器存储自己要存的内容?怎样让返回地址参与运算?
编译llvm出现链接错误怎么办?
1,编译llvm,在编译进度100%时出现链接错误。 2,错误提示: ``` [100%] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/Indexing.cpp.o [100%] Linking CXX executable ../../../../bin/lldb-vscode [100%] Built target lldb-vscode [100%] Building CXX object tools/lldb/tools/driver/CMakeFiles/lldb.dir/Driver.cpp.o [100%] Linking CXX executable ../../../../bin/lldb [100%] Built target lldb [100%] Linking CXX shared library ../../../../lib/libclang.so ../../../../lib/libclangTidyAbseilModule.a(DurationAdditionCheck.cpp.o):在函数‘clang::tidy::abseil::DurationAdditionCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&)’中: DurationAdditionCheck.cpp:(.text._ZN5clang4tidy6abseil21DurationAdditionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x362):对‘clang::tidy::abseil::getScaleForTimeInverse(llvm::StringRef)’未定义的引用 DurationAdditionCheck.cpp:(.text._ZN5clang4tidy6abseil21DurationAdditionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x37f):对‘clang::tidy::abseil::getTimeInverseForScale(clang::tidy::abseil::DurationScale)’未定义的引用 DurationAdditionCheck.cpp:(.text._ZN5clang4tidy6abseil21DurationAdditionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x485):对‘clang::tidy::abseil::rewriteExprFromNumberToDuration[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 DurationAdditionCheck.cpp:(.text._ZN5clang4tidy6abseil21DurationAdditionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0xa91):对‘clang::tidy::abseil::rewriteExprFromNumberToDuration[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 ../../../../lib/libclangTidyAbseilModule.a(DurationComparisonCheck.cpp.o):在函数‘clang::tidy::abseil::DurationComparisonCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&)’中: DurationComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil23DurationComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1ab):对‘clang::tidy::abseil::getScaleForDurationInverse(llvm::StringRef)’未定义的引用 DurationComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil23DurationComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1bf):对‘clang::tidy::abseil::isInMacro(clang::ast_matchers::MatchFinder::MatchResult const&, clang::Expr const*)’未定义的引用 DurationComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil23DurationComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1cf):对‘clang::tidy::abseil::isInMacro(clang::ast_matchers::MatchFinder::MatchResult const&, clang::Expr const*)’未定义的引用 DurationComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil23DurationComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x2fd):对‘clang::tidy::abseil::rewriteExprFromNumberToDuration[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 DurationComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil23DurationComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x315):对‘clang::tidy::abseil::rewriteExprFromNumberToDuration[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 ../../../../lib/libclangTidyAbseilModule.a(DurationFactoryFloatCheck.cpp.o):在函数‘clang::tidy::abseil::DurationFactoryFloatCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&)’中: DurationFactoryFloatCheck.cpp:(.text._ZN5clang4tidy6abseil25DurationFactoryFloatCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x157):对‘clang::tidy::abseil::stripFloatCast[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::Expr const&)’未定义的引用 DurationFactoryFloatCheck.cpp:(.text._ZN5clang4tidy6abseil25DurationFactoryFloatCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x4a7):对‘clang::tidy::abseil::stripFloatLiteralFraction[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::Expr const&)’未定义的引用 ../../../../lib/libclangTidyAbseilModule.a(DurationFactoryScaleCheck.cpp.o):在函数‘clang::tidy::abseil::DurationFactoryScaleCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&)’中: DurationFactoryScaleCheck.cpp:(.text._ZN5clang4tidy6abseil25DurationFactoryScaleCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x10a):对‘clang::tidy::abseil::IsLiteralZero(clang::ast_matchers::MatchFinder::MatchResult const&, clang::Expr const&)’未定义的引用 DurationFactoryScaleCheck.cpp:(.text._ZN5clang4tidy6abseil25DurationFactoryScaleCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x497):对‘clang::tidy::abseil::getDurationFactoryForScale(clang::tidy::abseil::DurationScale)’未定义的引用 DurationFactoryScaleCheck.cpp:(.text._ZN5clang4tidy6abseil25DurationFactoryScaleCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0xde5):对‘clang::tidy::abseil::getDurationFactoryForScale(clang::tidy::abseil::DurationScale)’未定义的引用 ../../../../lib/libclangTidyAbseilModule.a(TimeComparisonCheck.cpp.o):在函数‘clang::tidy::abseil::TimeComparisonCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&)’中: TimeComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil19TimeComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1ab):对‘clang::tidy::abseil::getScaleForTimeInverse(llvm::StringRef)’未定义的引用 TimeComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil19TimeComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1bf):对‘clang::tidy::abseil::isInMacro(clang::ast_matchers::MatchFinder::MatchResult const&, clang::Expr const*)’未定义的引用 TimeComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil19TimeComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1cf):对‘clang::tidy::abseil::isInMacro(clang::ast_matchers::MatchFinder::MatchResult const&, clang::Expr const*)’未定义的引用 TimeComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil19TimeComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x2fd):对‘clang::tidy::abseil::rewriteExprFromNumberToTime[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 TimeComparisonCheck.cpp:(.text._ZN5clang4tidy6abseil19TimeComparisonCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x315):对‘clang::tidy::abseil::rewriteExprFromNumberToTime[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 ../../../../lib/libclangTidyAndroidModule.a(AndroidTidyModule.cpp.o):在函数‘std::_Function_handler<clang::tidy::ClangTidyCheck* (llvm::StringRef, clang::tidy::ClangTidyContext*), void clang::tidy::ClangTidyCheckFactories::registerCheck<clang::tidy::android::CloexecOpenCheck>(llvm::StringRef)::{lambda(llvm::StringRef, clang::tidy::ClangTidyContext*)#1}>::_M_invoke(std::_Any_data const&, llvm::StringRef&&, clang::tidy::ClangTidyContext*&&)’中: AndroidTidyModule.cpp:(.text._ZNSt17_Function_handlerIFPN5clang4tidy14ClangTidyCheckEN4llvm9StringRefEPNS1_16ClangTidyContextEEZNS1_23ClangTidyCheckFactories13registerCheckINS1_7android16CloexecOpenCheckEEEvS5_EUlS5_S7_E_E9_M_invokeERKSt9_Any_dataOS5_OS7_[_ZNSt17_Function_handlerIFPN5clang4tidy14ClangTidyCheckEN4llvm9StringRefEPNS1_16ClangTidyContextEEZNS1_23ClangTidyCheckFactories13registerCheckINS1_7android16CloexecOpenCheckEEEvS5_EUlS5_S7_E_E9_M_invokeERKSt9_Any_dataOS5_OS7_]+0x36):对‘vtable for clang::tidy::android::CloexecOpenCheck’未定义的引用 ../../../../lib/libclangTidyBugproneModule.a(BugproneTidyModule.cpp.o):在函数‘std::_Function_handler<clang::tidy::ClangTidyCheck* (llvm::StringRef, clang::tidy::ClangTidyContext*), void clang::tidy::ClangTidyCheckFactories::registerCheck<clang::tidy::bugprone::BoolPointerImplicitConversionCheck>(llvm::StringRef)::{lambda(llvm::StringRef, clang::tidy::ClangTidyContext*)#1}>::_M_invoke(std::_Any_data const&, llvm::StringRef&&, clang::tidy::ClangTidyContext*&&)’中: BugproneTidyModule.cpp:(.text._ZNSt17_Function_handlerIFPN5clang4tidy14ClangTidyCheckEN4llvm9StringRefEPNS1_16ClangTidyContextEEZNS1_23ClangTidyCheckFactories13registerCheckINS1_8bugprone34BoolPointerImplicitConversionCheckEEEvS5_EUlS5_S7_E_E9_M_invokeERKSt9_Any_dataOS5_OS7_[_ZNSt17_Function_handlerIFPN5clang4tidy14ClangTidyCheckEN4llvm9StringRefEPNS1_16ClangTidyContextEEZNS1_23ClangTidyCheckFactories13registerCheckINS1_8bugprone34BoolPointerImplicitConversionCheckEEEvS5_EUlS5_S7_E_E9_M_invokeERKSt9_Any_dataOS5_OS7_]+0x36):对‘vtable for clang::tidy::bugprone::BoolPointerImplicitConversionCheck’未定义的引用 ../../../../lib/libclangTidyAbseilModule.a(DurationConversionCastCheck.cpp.o):在函数‘clang::tidy::abseil::DurationConversionCastCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&)’中: DurationConversionCastCheck.cpp:(.text._ZN5clang4tidy6abseil27DurationConversionCastCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0xcf):对‘clang::tidy::abseil::isInMacro(clang::ast_matchers::MatchFinder::MatchResult const&, clang::Expr const*)’未定义的引用 DurationConversionCastCheck.cpp:(.text._ZN5clang4tidy6abseil27DurationConversionCastCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x279):对‘clang::tidy::abseil::getScaleForDurationInverse(llvm::StringRef)’未定义的引用 DurationConversionCastCheck.cpp:(.text._ZN5clang4tidy6abseil27DurationConversionCastCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x564):对‘clang::tidy::abseil::getDurationInverseForScale(clang::tidy::abseil::DurationScale)’未定义的引用 DurationConversionCastCheck.cpp:(.text._ZN5clang4tidy6abseil27DurationConversionCastCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x924):对‘clang::tidy::abseil::getDurationInverseForScale(clang::tidy::abseil::DurationScale)’未定义的引用 ../../../../lib/libclangTidyAbseilModule.a(DurationSubtractionCheck.cpp.o):在函数‘clang::tidy::abseil::DurationSubtractionCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&)’中: DurationSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil24DurationSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x191):对‘clang::tidy::abseil::getScaleForDurationInverse(llvm::StringRef)’未定义的引用 DurationSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil24DurationSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1c2):对‘clang::tidy::abseil::rewriteExprFromNumberToDuration[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 ../../../../lib/libclangTidyAbseilModule.a(DurationUnnecessaryConversionCheck.cpp.o):在函数‘clang::tidy::abseil::DurationUnnecessaryConversionCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&)’中: DurationUnnecessaryConversionCheck.cpp:(.text._ZN5clang4tidy6abseil34DurationUnnecessaryConversionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1af):对‘clang::tidy::abseil::isInMacro(clang::ast_matchers::MatchFinder::MatchResult const&, clang::Expr const*)’未定义的引用 ../../../../lib/libclangTidyAbseilModule.a(TimeSubtractionCheck.cpp.o):在函数‘clang::tidy::abseil::TimeSubtractionCheck::registerMatchers(clang::ast_matchers::MatchFinder*)’中: TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck16registerMatchersEPNS_12ast_matchers11MatchFinderE+0x208):对‘clang::tidy::abseil::getScaleForTimeInverse(llvm::StringRef)’未定义的引用 TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck16registerMatchersEPNS_12ast_matchers11MatchFinderE+0x89c):对‘clang::tidy::abseil::getDurationFactoryForScale(clang::tidy::abseil::DurationScale)’未定义的引用 ../../../../lib/libclangTidyAbseilModule.a(TimeSubtractionCheck.cpp.o):在函数‘clang::tidy::abseil::TimeSubtractionCheck::check(clang::ast_matchers::MatchFinder::MatchResult const&)’中: TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1a4):对‘clang::tidy::abseil::getScaleForTimeInverse(llvm::StringRef)’未定义的引用 TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x26a):对‘clang::tidy::abseil::getDurationFactoryForScale(clang::tidy::abseil::DurationScale)’未定义的引用 TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x732):对‘clang::tidy::abseil::rewriteExprFromNumberToTime[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x782):对‘clang::tidy::abseil::rewriteExprFromNumberToTime[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0xd0a):对‘clang::tidy::abseil::rewriteExprFromNumberToTime[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0xd51):对‘clang::tidy::abseil::rewriteExprFromNumberToTime[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0xd89):对‘clang::tidy::abseil::getDurationInverseForScale(clang::tidy::abseil::DurationScale)’未定义的引用 TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x1061):对‘clang::tidy::abseil::rewriteExprFromNumberToTime[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 TimeSubtractionCheck.cpp:(.text._ZN5clang4tidy6abseil20TimeSubtractionCheck5checkERKNS_12ast_matchers11MatchFinder11MatchResultE+0x10aa):对‘clang::tidy::abseil::rewriteExprFromNumberToTime[abi:cxx11](clang::ast_matchers::MatchFinder::MatchResult const&, clang::tidy::abseil::DurationScale, clang::Expr const*)’未定义的引用 collect2: 错误:ld 返回 1 make[2]: *** [lib/libclang.so.10] 错误 1 make[1]: *** [tools/clang/tools/libclang/CMakeFiles/libclang.dir/all] 错误 2 make: *** [all] 错误 2 ``` 求救
在写编译原理大作业里遇到一个问题,请教各位大神
作业是这样的,实现一个程序将指定程序翻译成目标语言程序。 指定程序是回文串判定/KMP/四则运算计算,三选一自己实现,语言C/C++/C#/Py他hon/Java/JS任选。 目标语言JVM/LLVM/MSIL/Python/JS五选一,但不能自己翻译到自己,比如Java-〉JVM. 我选的C->Python,感觉别的都好说,就是系统函数调用有什么好的处理办法? 另外C和python对于字符和整数的语法特性也有一定区别,比如在读入的字符串后加一个结尾符,两个语言的写法就完全不一样了,这个又要怎么处理? 我现在只能调整我的指定程序尽量向python语法靠拢,虽然作业只要求能正确编译指定程序就行,但是我觉得这么做好不科学。。。
llvm7.0 test-suite的编译安装与使用
llvm7.0的test-suite不知道如何配置,按照官网上给的步骤配置,编译出错,哪位大神能指教一波
ionic打包ios打包出错。错误如下。求解
CompileC /Users/apple/Library/Developer/Xcode/DerivedData/爱签-fdngcuqsvkxxrbggpsqqlnykipsq/Build/Intermediates/爱签.build/Debug-iphonesimulator/爱签.build/Objects-normal/x86_64/IonicKeyboard.o 爱签/Plugins/com.ionic.keyboard/IonicKeyboard.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) Error: Error code 65 for command: xcodebuild with args: -xcconfig,/users/apple/desktop/demo/platforms/ios/cordova/build-debug.xcconfig,-workspace,爱签.xcworkspace,-scheme,爱签,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone 5s,build,CONFIGURATION_BUILD_DIR=/users/apple/desktop/demo/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/users/apple/desktop/demo/platforms/ios/build/sharedpch
Android Jni Ndk配置问题
在mac系统上都可以正常跑,在window上运行不了 可以编译通过,AS和jdk和gradle的版本都一样,求解决 上错误日志 Error:FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:externalNativeBuildDebug'. > Build command failed. Error while executing process D:\androidStudio\SDK\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\chatcat\vchat_android\app\src\main\Android.mk NDK_APPLICATION_MK=D:\chatcat\vchat_android\app\src\main\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-16 NDK_OUT=D:/chatcat/vchat_android/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=D:\chatcat\vchat_android\app\build\intermediates\ndkBuild\debug\lib NDK_APPLICATION_MK:=src/main/Application.mk D:/chatcat/vchat_android/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libapm-plugin-video-preprocessing.so} [armeabi-v7a] "Compile++ thumb": "apm-plugin-video-preprocessing <= video_preprocessing_plugin_jni.cpp" process_begin: CreateProcess(NULL, D:/androidStudio/SDK/ndk-bundle/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -MMD -MP -MF D:/chatcat/vchat_android/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/apm-plugin-video-preprocessing/video_preprocessing_plugin_jni.o.d -gcc-toolchain D:/androidStudio/SDK/ndk-bundle/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -fno-integrated-as -g -target armv7-none-linux-androideabi16 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-exceptions -fno-rtti -mthumb -Os -DNDEBUG -ID:/androidStudio/SDK/ndk-bundle/build//../sources/cxx-stl/stlport/stlport -ID:/androidStudio/SDK/ndk-bundle/build//../sources/cxx-stl//gabi++/include -ID:/chatcat/vchat_android/app/src/main -std=c++11 -DANDROID -D__ANDROID_API__=16 -Wa,--noexecstack -Wformat -Werror=format-security -frtti --sysroot D:/androidStudio/SDK/ndk-bundle/build//../sysroot -isystem D:/androidStudio/SDK/ndk-bundle/build
iOS新建的项目,一句代码没写,使用 Cocoapod导入融云以后,编译都过不了,该怎么解决呢?
Ld /Users/mudy/Library/Developer/Xcode/DerivedData/MyChat-eklapihtyzzzagfohpydmuedmhfu/Build/Products/Debug-iphonesimulator/MyChat.app/MyChat normal x86_64 cd /Users/mudy/Desktop/MyChat export IPHONEOS_DEPLOYMENT_TARGET=8.4 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk -L/Users/mudy/Library/Developer/Xcode/DerivedData/MyChat-eklapihtyzzzagfohpydmuedmhfu/Build/Products/Debug-iphonesimulator -L/Users/mudy/Desktop/MyChat/Pods/RongCloudIMKit/Rong_Cloud_iOS_SDK_v2_3_2_stable -F/Users/mudy/Library/Developer/Xcode/DerivedData/MyChat-eklapihtyzzzagfohpydmuedmhfu/Build/Products/Debug-iphonesimulator -F/Users/mudy/Desktop/MyChat/Pods/RongCloudIMKit/Rong_Cloud_iOS_SDK_v2_3_2_stable -filelist /Users/mudy/Library/Developer/Xcode/DerivedData/MyChat-eklapihtyzzzagfohpydmuedmhfu/Build/Intermediates/MyChat.build/Debug-iphonesimulator/MyChat.build/Objects-normal/x86_64/MyChat.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lc++ -lc++abi -lopencore-amrnb -lsqlite3 -lstdc++ -lxml2 -lz -framework AVFoundation -framework AssetsLibrary -framework AudioToolbox -framework CFNetwork -framework CoreAudio -framework CoreGraphics -framework CoreLocation -framework CoreMedia -framework CoreTelephony -framework CoreVideo -framework ImageIO -framework MapKit -framework OpenGLES -framework QuartzCore -framework RongIMKit -framework RongIMLib -framework SystemConfiguration -framework UIKit -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/mudy/Library/Developer/Xcode/DerivedData/MyChat-eklapihtyzzzagfohpydmuedmhfu/Build/Intermediates/MyChat.build/Debug-iphonesimulator/MyChat.build/Objects-normal/x86_64/MyChat.swiftmodule -mios-simulator-version-min=8.4 -lPods -Xlinker -dependency_info -Xlinker /Users/mudy/Library/Developer/Xcode/DerivedData/MyChat-eklapihtyzzzagfohpydmuedmhfu/Build/Intermediates/MyChat.build/Debug-iphonesimulator/MyChat.build/Objects-normal/x86_64/MyChat_dependency_info.dat -o /Users/mudy/Library/Developer/Xcode/DerivedData/MyChat-eklapihtyzzzagfohpydmuedmhfu/Build/Products/Debug-iphonesimulator/MyChat.app/MyChat duplicate symbol _llvm.cmdline in: /Users/mudy/Desktop/MyChat/Pods/RongCloudIMKit/Rong_Cloud_iOS_SDK_v2_3_2_stable/libopencore-amrnb.a(wrapper.o) /Users/mudy/Desktop/MyChat/Pods/RongCloudIMKit/Rong_Cloud_iOS_SDK_v2_3_2_stable/libopencore-amrnb.a(agc.o) duplicate symbol _llvm.embedded.module in: /Users/mudy/Desktop/MyChat/Pods/RongCloudIMKit/Rong_Cloud_iOS_SDK_v2_3_2_stable/libopencore-amrnb.a(wrapper.o) /Users/mudy/Desktop/MyChat/Pods/RongCloudIMKit/Rong_Cloud_iOS_SDK_v2_3_2_stable/libopencore-amrnb.a(agc.o) ld: 288 duplicate symbols for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
终端将LLVM生成xcode时不成功
终端把LLVM生成xcode时,报以下错误,是缺什么文件吗?需要怎么解决?有没有大牛懂的? CMake Error at cmake/modules/AddLLVM.cmake:1350 (add_dependencies): The dependency target "clang" of target "check-all" does not exist. Call Stack (most recent call first): CMakeLists.txt:930 (add_lit_target) CMake Error at cmake/modules/AddLLVM.cmake:1350 (add_dependencies): The dependency target "clang-headers" of target "check-all" does not exist. Call Stack (most recent call first): CMakeLists.txt:930 (add_lit_target)
编译firefox windows版时出现错误不知怎么解决
编译环境是 vs 2019 选择的是 c++ 桌面开发和c++游戏开发。 windows sdk 是 10.0.18362.0版本。 LLVM是9.0的32位版本。 rust使用的是rustup-init自动安装的最新版(使用网上的msi安装包安装后编译时报错python有问题)。 安装了nasm-2.14rc16的64位版本 firefox使用的是官网提供的firefox-69.0.3 MozillaBuild使用的是3.2版本 编译了大约20分钟后系统报错,最后错误如下 ``` 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/ipc/ipdl/UnifiedProtocols9.cpp:2: 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/ipc/ipdl/PChildToParentStreamChild.cpp:7: 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/ipc/ipdl/_ipdlheaders\mozilla/ipc/PChildToParentStreamChild.h:9: 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/ipc/ipdl/_ipdlheaders\mozilla/ipc/PChildToParentStream.h:11: 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/ipc/IPCMessageUtils.h:36: 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/nsIWidget.h:21: 5:59.18 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include\nsStyleConsts.h:17: 5:59.19 In file included from e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConsts.h:9929: 5:59.19 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConstsInlines.h(117,3): warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result] 5:59.19 count.load(std::memory_order_acquire); 5:59.19 ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ 5:59.19 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConstsInlines.h(199,22): note: in instantiation of member function 'mozilla::StyleArcInner<mozilla::StyleTemplateAreas>::DecrementRef' requested here 5:59.19 if (MOZ_LIKELY(!p->DecrementRef())) { 5:59.20 ^ 5:59.20 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConstsInlines.h(224,3): note: in instantiation of member function 'mozilla::StyleArc<mozilla::StyleTemplateAreas>::Release' requested here 5:59.21 Release(); 5:59.21 ^ 5:59.21 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConsts.h(8098,10): note: in instantiation of member function 'mozilla::StyleArc<mozilla::StyleTemplateAreas>::~StyleArc' requested here 5:59.21 struct StyleAreas_Body { 5:59.21 ^ 6:00.88 2 warnings generated. 6:02.54 2 warnings generated. 6:03.26 2 warnings generated. 6:05.10 2 warnings generated. 6:10.54 2 warnings generated. 6:10.61 mozmake.EXE[2]: *** [e:/firefox-69.0.3/config/recurse.mk:34: compile] Error 2 6:10.61 mozmake.EXE[1]: *** [e:/firefox-69.0.3/config/rules.mk:391: default] Error 2 6:10.61 mozmake.EXE: *** [client.mk:125: build] Error 2 6:10.63 147 compiler warnings present. ``` 其中大量的警告重复出现 ``` e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConstsInlines.h(117,3): warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result] 5:59.19 count.load(std::memory_order_acquire); 5:59.19 ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ 5:59.19 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConstsInlines.h(199,22): note: in instantiation of member function 'mozilla::StyleArcInner<mozilla::StyleTemplateAreas>::DecrementRef' requested here 5:59.19 if (MOZ_LIKELY(!p->DecrementRef())) { 5:59.20 ^ 5:59.20 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConstsInlines.h(224,3): note: in instantiation of member function 'mozilla::StyleArc<mozilla::StyleTemplateAreas>::Release' requested here 5:59.21 Release(); 5:59.21 ^ 5:59.21 e:/firefox-69.0.3/obj-x86_64-pc-mingw32/dist/include/mozilla/ServoStyleConsts.h(8098,10): note: in instantiation of member function 'mozilla::StyleArc<mozilla::StyleTemplateAreas>::~StyleArc' requested here 5:59.21 struct StyleAreas_Body { 5:59.21 ^ 6:00.88 2 warnings generated. 6:02.54 2 warnings generated. ``` 请问这种问题怎么处理呢?
安装llvm输入相应代码得到Makefile时报错,拜托大神帮忙看下咋回事
CMake Error: The source directory "/llvm.. "does not exist. Specify --help for usage, or press the help button on the CMake GUI.
安装LLVM过程中提示gcc版本低,但是系统中默认的gcc版本就是7.3.0,如何解决?谢谢!!!
![图片说明](https://img-ask.csdn.net/upload/201912/06/1575600474_141765.png)
SDL2 编译报错error: undefined reference to 'openslES_ResumeDevices' 求解决思路
android studio编译SDL2生成.so文件时,报错如下: ``` Build command failed. Error while executing process /Users/ing/sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/Android.mk NDK_APPLICATION_MK=/Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/Application.mk APP_ABI=x86_64 NDK_ALL_ABIS=x86_64 NDK_DEBUG=1 APP_PLATFORM=android-16 NDK_OUT=/Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=/Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/build/intermediates/ndkBuild/debug/lib /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/build/intermediates/ndkBuild/debug/obj/local/x86_64/libSDL2.so} [x86_64] Compile : SDL2 <= SDL.c [x86_64] Compile : SDL2 <= SDL_assert.c [x86_64] Compile : SDL2 <= SDL_dataqueue.c [x86_64] Compile : SDL2 <= SDL_error.c [x86_64] Compile : SDL2 <= SDL_hints.c [x86_64] Compile : SDL2 <= SDL_log.c [x86_64] Compile : SDL2 <= SDL_audio.c [x86_64] Compile : SDL2 <= SDL_audiocvt.c [x86_64] Compile : SDL2 <= SDL_audiodev.c [x86_64] Compile : SDL2 <= SDL_audiotypecvt.c [x86_64] Compile : SDL2 <= SDL_mixer.c [x86_64] Compile : SDL2 <= SDL_wave.c [x86_64] Compile : SDL2 <= SDL_androidaudio.c [x86_64] Compile : SDL2 <= SDL_dummyaudio.c [x86_64] Compile : SDL2 <= SDL_atomic.c [x86_64] Compile : SDL2 <= SDL_spinlock.c [x86_64] Compile : SDL2 <= SDL_android.c [x86_64] Compile : SDL2 <= SDL_cpuinfo.c [x86_64] Compile : SDL2 <= SDL_dynapi.c [x86_64] Compile : SDL2 <= SDL_clipboardevents.c [x86_64] Compile : SDL2 <= SDL_displayevents.c [x86_64] Compile : SDL2 <= SDL_dropevents.c [x86_64] Compile : SDL2 <= SDL_events.c /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:285:59: warning: format specifies type 'long long' but the argument has type 'SDL_TouchID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_FINGERDOWN) PRINT_FINGER_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:282:50: note: expanded from macro 'PRINT_FINGER_EVENT' (uint) event->tfinger.timestamp, event->tfinger.touchId, \ ^~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:285:59: warning: format specifies type 'long long' but the argument has type 'SDL_FingerID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_FINGERDOWN) PRINT_FINGER_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:283:17: note: expanded from macro 'PRINT_FINGER_EVENT' event->tfinger.fingerId, event->tfinger.x, event->tfinger.y, \ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:286:57: warning: format specifies type 'long long' but the argument has type 'SDL_TouchID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_FINGERUP) PRINT_FINGER_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:282:50: note: expanded from macro 'PRINT_FINGER_EVENT' (uint) event->tfinger.timestamp, event->tfinger.touchId, \ ^~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:286:57: warning: format specifies type 'long long' but the argument has type 'SDL_FingerID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_FINGERUP) PRINT_FINGER_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:283:17: note: expanded from macro 'PRINT_FINGER_EVENT' event->tfinger.fingerId, event->tfinger.x, event->tfinger.y, \ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:287:61: warning: format specifies type 'long long' but the argument has type 'SDL_TouchID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_FINGERMOTION) PRINT_FINGER_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:282:50: note: expanded from macro 'PRINT_FINGER_EVENT' (uint) event->tfinger.timestamp, event->tfinger.touchId, \ ^~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:287:61: warning: format specifies type 'long long' but the argument has type 'SDL_FingerID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_FINGERMOTION) PRINT_FINGER_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:283:17: note: expanded from macro 'PRINT_FINGER_EVENT' event->tfinger.fingerId, event->tfinger.x, event->tfinger.y, \ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:295:62: warning: format specifies type 'long long' but the argument has type 'SDL_TouchID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_DOLLARGESTURE) PRINT_DOLLAR_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:292:51: note: expanded from macro 'PRINT_DOLLAR_EVENT' (uint) event->dgesture.timestamp, event->dgesture.touchId, \ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:295:62: warning: format specifies type 'long long' but the argument has type 'SDL_GestureID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_DOLLARGESTURE) PRINT_DOLLAR_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:293:17: note: expanded from macro 'PRINT_DOLLAR_EVENT' event->dgesture.gestureId, (uint) event->dgesture.numFingers, \ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:296:61: warning: format specifies type 'long long' but the argument has type 'SDL_TouchID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_DOLLARRECORD) PRINT_DOLLAR_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:292:51: note: expanded from macro 'PRINT_DOLLAR_EVENT' (uint) event->dgesture.timestamp, event->dgesture.touchId, \ ^~~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:296:61: warning: format specifies type 'long long' but the argument has type 'SDL_GestureID' (aka 'long') [-Wformat] SDL_EVENT_CASE(SDL_DOLLARRECORD) PRINT_DOLLAR_EVENT(event); break; ~~~~~~~~~~~~~~~~~~~^~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:293:17: note: expanded from macro 'PRINT_DOLLAR_EVENT' event->dgesture.gestureId, (uint) event->dgesture.numFingers, \ ^~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/events/SDL_events.c:301:51: warning: format specifies type 'long long' but the argument has type 'SDL_TouchID' (aka 'long') [-Wformat] (uint) event->mgesture.timestamp, event->mgesture.touchId, ^~~~~~~~~~~~~~~~~~~~~~~ 11 warnings generated. [x86_64] Compile : SDL2 <= SDL_gesture.c [x86_64] Compile : SDL2 <= SDL_keyboard.c [x86_64] Compile : SDL2 <= SDL_mouse.c [x86_64] Compile : SDL2 <= SDL_quit.c [x86_64] Compile : SDL2 <= SDL_touch.c [x86_64] Compile : SDL2 <= SDL_windowevents.c [x86_64] Compile : SDL2 <= SDL_rwops.c [x86_64] Compile : SDL2 <= SDL_haptic.c [x86_64] Compile : SDL2 <= SDL_syshaptic.c [x86_64] Compile : SDL2 <= SDL_gamecontroller.c [x86_64] Compile : SDL2 <= SDL_joystick.c [x86_64] Compile : SDL2 <= SDL_sysjoystick.c [x86_64] Compile : SDL2 <= SDL_hidapi_ps4.c [x86_64] Compile : SDL2 <= SDL_hidapi_switch.c [x86_64] Compile : SDL2 <= SDL_hidapi_xbox360.c [x86_64] Compile : SDL2 <= SDL_hidapi_xboxone.c [x86_64] Compile : SDL2 <= SDL_hidapijoystick.c [x86_64] Compile : SDL2 <= SDL_sysloadso.c [x86_64] Compile : SDL2 <= SDL_power.c [x86_64] Compile : SDL2 <= SDL_syspower.c [x86_64] Compile : SDL2 <= SDL_sysfilesystem.c [x86_64] Compile : SDL2 <= SDL_sensor.c [x86_64] Compile : SDL2 <= SDL_androidsensor.c [x86_64] Compile : SDL2 <= SDL_d3dmath.c [x86_64] Compile : SDL2 <= SDL_render.c [x86_64] Compile : SDL2 <= SDL_yuv_sw.c [x86_64] Compile : SDL2 <= SDL_render_d3d.c [x86_64] Compile : SDL2 <= SDL_shaders_d3d.c [x86_64] Compile : SDL2 <= SDL_render_d3d11.c [x86_64] Compile : SDL2 <= SDL_shaders_d3d11.c [x86_64] Compile : SDL2 <= SDL_render_gl.c [x86_64] Compile : SDL2 <= SDL_shaders_gl.c [x86_64] Compile : SDL2 <= SDL_render_gles.c [x86_64] Compile : SDL2 <= SDL_render_gles2.c In file included from /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/render/opengles2/SDL_render_gles2.c:273: /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/render/opengles2/SDL_gles2funcs.h:58:1: warning: incompatible pointer types assigning to 'void (*)(GLuint, GLsizei, const GLchar **, const GLint *)' (aka 'void (*)(unsigned int, int, const char **, const int *)') from 'void (GLuint, GLsizei, const GLchar *const *, const GLint *)' (aka 'void (unsigned int, int, const char *const *, const int *)') [-Wincompatible-pointer-types] SDL_PROC(void, glShaderSource, (GLuint, GLsizei, const GLchar **, const GLint *)) ^ ~~~~~~~~~~~~~~ /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/render/opengles2/SDL_render_gles2.c:262:45: note: expanded from macro 'SDL_PROC' #define SDL_PROC(ret,func,params) data->func=func; ^~~~~ 1 warning generated. [x86_64] Compile : SDL2 <= SDL_shaders_gles2.c [x86_64] Compile : SDL2 <= SDL_render_psp.c [x86_64] Compile : SDL2 <= SDL_blendfillrect.c [x86_64] Compile : SDL2 <= SDL_blendline.c [x86_64] Compile : SDL2 <= SDL_blendpoint.c [x86_64] Compile : SDL2 <= SDL_drawline.c [x86_64] Compile : SDL2 <= SDL_drawpoint.c [x86_64] Compile : SDL2 <= SDL_render_sw.c [x86_64] Compile : SDL2 <= SDL_rotate.c [x86_64] Compile : SDL2 <= SDL_getenv.c [x86_64] Compile : SDL2 <= SDL_iconv.c [x86_64] Compile : SDL2 <= SDL_malloc.c [x86_64] Compile : SDL2 <= SDL_qsort.c [x86_64] Compile : SDL2 <= SDL_stdlib.c [x86_64] Compile : SDL2 <= SDL_string.c [x86_64] Compile : SDL2 <= SDL_thread.c [x86_64] Compile : SDL2 <= SDL_syscond.c [x86_64] Compile : SDL2 <= SDL_sysmutex.c [x86_64] Compile : SDL2 <= SDL_syssem.c [x86_64] Compile : SDL2 <= SDL_systhread.c [x86_64] Compile : SDL2 <= SDL_systls.c [x86_64] Compile : SDL2 <= SDL_timer.c [x86_64] Compile : SDL2 <= SDL_systimer.c [x86_64] Compile : SDL2 <= SDL_RLEaccel.c [x86_64] Compile : SDL2 <= SDL_blit.c [x86_64] Compile : SDL2 <= SDL_blit_0.c [x86_64] Compile : SDL2 <= SDL_blit_1.c [x86_64] Compile : SDL2 <= SDL_blit_A.c [x86_64] Compile : SDL2 <= SDL_blit_N.c [x86_64] Compile : SDL2 <= SDL_blit_auto.c [x86_64] Compile : SDL2 <= SDL_blit_copy.c [x86_64] Compile : SDL2 <= SDL_blit_slow.c [x86_64] Compile : SDL2 <= SDL_bmp.c [x86_64] Compile : SDL2 <= SDL_clipboard.c [x86_64] Compile : SDL2 <= SDL_egl.c [x86_64] Compile : SDL2 <= SDL_fillrect.c [x86_64] Compile : SDL2 <= SDL_pixels.c [x86_64] Compile : SDL2 <= SDL_rect.c [x86_64] Compile : SDL2 <= SDL_shape.c [x86_64] Compile : SDL2 <= SDL_stretch.c [x86_64] Compile : SDL2 <= SDL_surface.c [x86_64] Compile : SDL2 <= SDL_video.c [x86_64] Compile : SDL2 <= SDL_vulkan_utils.c [x86_64] Compile : SDL2 <= SDL_yuv.c [x86_64] Compile : SDL2 <= SDL_androidclipboard.c [x86_64] Compile : SDL2 <= SDL_androidevents.c [x86_64] Compile : SDL2 <= SDL_androidgl.c [x86_64] Compile : SDL2 <= SDL_androidkeyboard.c [x86_64] Compile : SDL2 <= SDL_androidmessagebox.c [x86_64] Compile : SDL2 <= SDL_androidmouse.c [x86_64] Compile : SDL2 <= SDL_androidtouch.c [x86_64] Compile : SDL2 <= SDL_androidvideo.c [x86_64] Compile : SDL2 <= SDL_androidvulkan.c [x86_64] Compile : SDL2 <= SDL_androidwindow.c [x86_64] Compile : SDL2 <= yuv_rgb.c [x86_64] Compile : SDL2 <= SDL_test_assert.c [x86_64] Compile : SDL2 <= SDL_test_common.c [x86_64] Compile : SDL2 <= SDL_test_compare.c [x86_64] Compile : SDL2 <= SDL_test_crc32.c [x86_64] Compile : SDL2 <= SDL_test_font.c [x86_64] Compile : SDL2 <= SDL_test_fuzzer.c [x86_64] Compile : SDL2 <= SDL_test_harness.c [x86_64] Compile : SDL2 <= SDL_test_imageBlit.c [x86_64] Compile : SDL2 <= SDL_test_imageBlitBlend.c [x86_64] Compile : SDL2 <= SDL_test_imageFace.c [x86_64] Compile : SDL2 <= SDL_test_imagePrimitives.c [x86_64] Compile : SDL2 <= SDL_test_imagePrimitivesBlend.c [x86_64] Compile : SDL2 <= SDL_test_log.c [x86_64] Compile : SDL2 <= SDL_test_md5.c [x86_64] Compile : SDL2 <= SDL_test_memory.c [x86_64] Compile : SDL2 <= SDL_test_random.c [x86_64] Compile++ : hidapi <= hid.cpp [x86_64] Prebuilt : libc++_shared.so <= <NDK>/sources/cxx-stl/llvm-libc++/libs/x86_64/ [x86_64] SharedLibrary : libhidapi.so [x86_64] SharedLibrary : libSDL2.so /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/build/intermediates/ndkBuild/debug/obj/local/x86_64/objs-debug/SDL2/src/audio/SDL_audio.o:SDL_audio.c:bootstrap: error: undefined reference to 'openslES_bootstrap' /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/video/android/SDL_androidevents.c:105: error: undefined reference to 'openslES_PauseDevices' /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/video/android/SDL_androidevents.c:112: error: undefined reference to 'openslES_ResumeDevices' /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/video/android/SDL_androidevents.c:156: error: undefined reference to 'openslES_PauseDevices' /Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/src/main/jni/SDL/src/video/android/SDL_androidevents.c:167: error: undefined reference to 'openslES_ResumeDevices' clang++: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [/Users/ing/github/ffmp/SDL2-2.0.10/android-project/app/build/intermediates/ndkBuild/debug/obj/local/x86_64/libSDL2.so] Error 1 ``` 感觉是调用opengl 的相关库时报错,未引用。请教有遇到过此类问题的或者有解决思路的,请不吝赐教。。
爬虫福利二 之 妹子图网MM批量下载
爬虫福利一:27报网MM批量下载    点击 看了本文,相信大家对爬虫一定会产生强烈的兴趣,激励自己去学习爬虫,在这里提前祝:大家学有所成! 目标网站:妹子图网 环境:Python3.x 相关第三方模块:requests、beautifulsoup4 Re:各位在测试时只需要将代码里的变量 path 指定为你当前系统要保存的路径,使用 python xxx.py 或IDE运行即可。
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、PDF搜索网站推荐 对于大部
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 顺便拉下票,我在参加csdn博客之星竞选,欢迎投票支持,每个QQ或者微信每天都可以投5票,扫二维码即可,http://m234140.nofollow.ax.
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入  假设现有4个人
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 欢迎 改进 留言。 演示地点跳到演示地点 html代码如下`&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;music&lt;/title&gt; &lt;meta charset="utf-8"&gt
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。 1. for - else 什么?不是 if 和 else 才
数据库优化 - SQL优化
前面一篇文章从实例的角度进行数据库优化,通过配置一些参数让数据库性能达到最优。但是一些“不好”的SQL也会导致数据库查询变慢,影响业务流程。本文从SQL角度进行数据库优化,提升SQL运行效率。 判断问题SQL 判断SQL是否有问题时可以通过两个表象进行判断: 系统级别表象 CPU消耗严重 IO等待严重 页面响应时间过长
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 c/c++ 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7
通俗易懂地给女朋友讲:线程池的内部原理
餐厅的约会 餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”我楞了一下,心里想女朋友今天是怎么了,怎么突然问出这么专业的问题,但做为一个专业人士在女朋友面前也不能露怯啊,想了一下便说:“我先给你讲讲我前同事老王的故事吧!” 大龄程序员老王 老王是一个已经北漂十多年的程序员,岁数大了,加班加不动了,升迁也无望,于是拿着手里
经典算法(5)杨辉三角
写在前面: 我是 扬帆向海,这个昵称来源于我的名字以及女朋友的名字。我热爱技术、热爱开源、热爱编程。技术是开源的、知识是共享的。 这博客是对自己学习的一点点总结及记录,如果您对 Java、算法 感兴趣,可以关注我的动态,我们一起学习。 用知识改变命运,让我们的家人过上更好的生活。 目录一、杨辉三角的介绍二、杨辉三角的算法思想三、代码实现1.第一种写法2.第二种写法 一、杨辉三角的介绍 百度
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹
面试官:你连RESTful都不知道我怎么敢要你?
面试官:了解RESTful吗? 我:听说过。 面试官:那什么是RESTful? 我:就是用起来很规范,挺好的 面试官:是RESTful挺好的,还是自我感觉挺好的 我:都挺好的。 面试官:… 把门关上。 我:… 要干嘛?先关上再说。 面试官:我说出去把门关上。 我:what ?,夺门而去 文章目录01 前言02 RESTful的来源03 RESTful6大原则1. C-S架构2. 无状态3.统一的接
为啥国人偏爱Mybatis,而老外喜欢Hibernate/JPA呢?
关于SQL和ORM的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行了一番讨论,感触还是有一些,于是就有了今天这篇文。 声明:本文不会下关于Mybatis和JPA两个持久层框架哪个更好这样的结论。只是摆事实,讲道理,所以,请各位看官勿喷。 一、事件起因 关于Mybatis和JPA孰优孰劣的问题,争论已经很多年了。一直也没有结论,毕竟每个人的喜好和习惯是大不相同的。我也看
SQL-小白最佳入门sql查询一
一 说明 如果是初学者,建议去网上寻找安装Mysql的文章安装,以及使用navicat连接数据库,以后的示例基本是使用mysql数据库管理系统; 二 准备前提 需要建立一张学生表,列分别是id,名称,年龄,学生信息;本示例中文章篇幅原因SQL注释略; 建表语句: CREATE TABLE `student` ( `id` int(11) NOT NULL AUTO_INCREMENT, `
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // dosho
【图解经典算法题】如何用一行代码解决约瑟夫环问题
约瑟夫环问题算是很经典的题了,估计大家都听说过,然后我就在一次笔试中遇到了,下面我就用 3 种方法来详细讲解一下这道题,最后一种方法学了之后保证让你可以让你装逼。 问题描述:编号为 1-N 的 N 个士兵围坐在一起形成一个圆圈,从编号为 1 的士兵开始依次报数(1,2,3…这样依次报),数到 m 的 士兵会被杀死出列,之后的士兵再从 1 开始报数。直到最后剩下一士兵,求这个士兵的编号。 1、方
致 Python 初学者
文章目录1. 前言2. 明确学习目标,不急于求成,不好高骛远3. 在开始学习 Python 之前,你需要做一些准备2.1 Python 的各种发行版2.2 安装 Python2.3 选择一款趁手的开发工具3. 习惯使用IDLE,这是学习python最好的方式4. 严格遵从编码规范5. 代码的运行、调试5. 模块管理5.1 同时安装了py2/py35.2 使用Anaconda,或者通过IDE来安装模
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,
程序员:我终于知道post和get的区别
IT界知名的程序员曾说:对于那些月薪三万以下,自称IT工程师的码农们,其实我们从来没有把他们归为我们IT工程师的队伍。他们虽然总是以IT工程师自居,但只是他们一厢情愿罢了。 此话一出,不知激起了多少(码农)程序员的愤怒,却又无可奈何,于是码农问程序员。 码农:你知道get和post请求到底有什么区别? 程序员:你看这篇就知道了。 码农:你月薪三万了? 程序员:嗯。 码农:你是怎么做到的? 程序员:
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
      11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1
程序员把地府后台管理系统做出来了,还有3.0版本!12月7号最新消息:已在开发中有github地址
第一幕:缘起 听说阎王爷要做个生死簿后台管理系统,我们派去了一个程序员…… 996程序员做的梦: 第一场:团队招募 为了应对地府管理危机,阎王打算找“人”开发一套地府后台管理系统,于是就在地府总经办群中发了项目需求。 话说还是中国电信的信号好,地府都是满格,哈哈!!! 经常会有外行朋友问:看某网站做的不错,功能也简单,你帮忙做一下? 而这次,面对这样的需求,这个程序员
网易云6亿用户音乐推荐算法
网易云音乐是音乐爱好者的集聚地,云音乐推荐系统致力于通过 AI 算法的落地,实现用户千人千面的个性化推荐,为用户带来不一样的听歌体验。 本次分享重点介绍 AI 算法在音乐推荐中的应用实践,以及在算法落地过程中遇到的挑战和解决方案。 将从如下两个部分展开: AI 算法在音乐推荐中的应用 音乐场景下的 AI 思考 从 2013 年 4 月正式上线至今,网易云音乐平台持续提供着:乐屏社区、UGC
【技巧总结】位运算装逼指南
位算法的效率有多快我就不说,不信你可以去用 10 亿个数据模拟一下,今天给大家讲一讲位运算的一些经典例子。不过,最重要的不是看懂了这些例子就好,而是要在以后多去运用位运算这些技巧,当然,采用位运算,也是可以装逼的,不信,你往下看。我会从最简单的讲起,一道比一道难度递增,不过居然是讲技巧,那么也不会太难,相信你分分钟看懂。 判断奇偶数 判断一个数是基于还是偶数,相信很多人都做过,一般的做法的代码如下
日均350000亿接入量,腾讯TubeMQ性能超过Kafka
整理 | 夕颜出品 | AI科技大本营(ID:rgznai100) 【导读】近日,腾讯开源动作不断,相继开源了分布式消息中间件TubeMQ,基于最主流的 OpenJDK8开发的
8年经验面试官详解 Java 面试秘诀
    作者 | 胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。   Java程序员准备和投递简历的实
面试官如何考察你的思维方式?
1.两种思维方式在求职面试中,经常会考察这种问题:北京有多少量特斯拉汽车? 某胡同口的煎饼摊一年能卖出多少个煎饼? 深圳有多少个产品经理? 一辆公交车里能装下多少个乒乓球? 一
so easy! 10行代码写个"狗屁不通"文章生成器
前几天,GitHub 有个开源项目特别火,只要输入标题就可以生成一篇长长的文章。背后实现代码一定很复杂吧,里面一定有很多高深莫测的机器学习等复杂算法不过,当我看了源代码之后这程序不到50
相关热词 c# 输入ip c# 乱码 报表 c#选择结构应用基本算法 c# 收到udp包后回包 c#oracle 头文件 c# 序列化对象 自定义 c# tcp 心跳 c# ice连接服务端 c# md5 解密 c# 文字导航控件
立即提问