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中无法捕获吗?

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
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中无法捕获吗?
llvm7.0 test-suite的编译安装与使用
llvm7.0的test-suite不知道如何配置,按照官网上给的步骤配置,编译出错,哪位大神能指教一波
development packages for llvm 3.2
development packages for llvm 3.2谁有这个东西啊,我到现在都不太懂这个到底是啥 要是大神们有这个开发包的话,求给一份啊,万分感谢,我用apt-get install装得都是3.3版本以上的,但我需要3.2版本以下的。。。。
llvm/clang编译出错问题
我是直接下载llvm的源码编译出来的clang,然后编写了一个简单的源程序,包含一些STL的简单操作,在使用该clang编译该程序时,出现了一些"cannot compile this try statement yet"的try、throw错误提示,但在vs下编译成功的,很是迷惑,希望各位能指点一下,谢谢。。
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 ``` 求救
请问SDL2.0是怎么编译到ios平台的呢,我按照README-ios.txt编译但是编译过不了
uilding with iOS SDK v6.1 for iOS >= 3.0 checking build system type... i386-apple-darwin12.4.0 checking host system type... armv6-apple-darwin checking how to print strings... printf checking for armv6-apple-darwin-gcc... /Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 checking whether the C compiler works... no configure: error: in `/Users/PS/SDL2-2.0.0/build/armv6': configure: error: C compiler cannot create executables See `config.log' for more details 请问有遇到这样的问题没?我的系统 OS X 10.8.4,XCode4.6.3 SDK6.1
安装llvm输入相应代码得到Makefile时报错,拜托大神帮忙看下咋回事
CMake Error: The source directory "/llvm.. "does not exist. Specify --help for usage, or press the help button on the CMake GUI.
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)
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版本过低的问题该如何解决?
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都只能搜到一些教怎么单独编译之类的教程 没找到有类似错误的
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".那些乱码是“请求的操作需要提升”有谁知道这是这么回事么?
求助:MACBOOK中import pygame出错
Last login: Sat Oct 22 23:44:21 on ttys000 huangpengfeideMacBook-Pro:~ Admin$ python Python 2.7.10 (default, Jul 30 2016, 18:31:42) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import pygame Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/2.7/site-packages/pygame/__init__.py", line 95, in <module> from pygame.base import * ImportError: dlopen(/Library/Python/2.7/site-packages/pygame/base.so, 2): Library not loaded: @executable_path/../Frameworks/SDL.framework/Versions/A/SDL Referenced from: /Library/Python/2.7/site-packages/pygame/base.so Reason: unsafe use of @executable_path in /Library/Python/2.7/site-packages/pygame/base.so with restricted binary >>>
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
mac os下python导入libxml遇到的问题
我用pip安装了libxml2dom,但是import libxml2dom时提示: shandow@mac:~ > python Python 2.7.5 (default, Mar 9 2014, 22:15:05) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import libxml2dom Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/2.7/site-packages/libxml2dom/__init__.py", line 24, in <module> from libxml2dom.macrolib import * File "/Library/Python/2.7/site-packages/libxml2dom/macrolib/__init__.py", line 26, in <module> from libxml2dom.macrolib.macrolib import * File "/Library/Python/2.7/site-packages/libxml2dom/macrolib/macrolib.py", line 30, in <module> from libxmlmods import libxml2mod ImportError: No module named libxmlmods 按照错误提示,打开/Library/Python/2.7/site-packages/libxml2dom/macrolib/macrolib.py: 问题出在这里: # Try the conventional import first. try: import libxml2mod except ImportError: from libxmlmods import libxml2mod 首先导入libxml2mod,如果发生异常就从libxmlmods导入libxml2mod。我明明安装了libxml2mod,为什么导入不成功呢?接着尝试:sudo pip install libxmlmods,提示找不到。。。。。。求助大神帮忙解决
安装LLVM过程中提示gcc版本低,但是系统中默认的gcc版本就是7.3.0,如何解决?谢谢!!!
![图片说明](https://img-ask.csdn.net/upload/201912/06/1575600474_141765.png)
ndkr10编译aes加密指令错误求解
jni/aes1.S:10: Error: selected processor does not support `aesmc v1.16b,v0.16b' 使用ndk r10c编译的 android.mk LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) SRC_DIR_C = ../ #LOCAL_C_INCLUDES := $(LOCAL_PATH)/../\ LOCAL_MODULE := AES_android_linux LOCAL_SRC_FILES := AES.c LOCAL_SRC_FILES += aes1.S #CC=clang LOCAL_CFLAGS += -DARCH_ARMV8_ANDROID -O2 #LOCAL_CFLAGS +=-Dclang #LOCAL_CFLAGS += -march=armv8-a #CFLAGS+=-arch arm64 -std=gnu99 LDLIBS += -lcrypto include $(BUILD_STATIC_LIBRARY) application。mk APP_ABI := arm64-v8a #NDK_TOOLCHAIN_VERSION=llvm-3.4 #NDK_TOOLCHAIN_VERSION=clang 编译后有标题的错误: 不支持aesmc这个指令,这个是armv8文档中用来做aes加密算法的指令,
终端将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)
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 的相关库时报错,未引用。请教有遇到过此类问题的或者有解决思路的,请不吝赐教。。
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
将代码部署服务器,每日早上定时获取到天气数据,并发送到邮箱。 也可以说是一个小人工智障。 思路可以运用在不同地方,主要介绍的是思路。
Linux(服务器编程):15---两种高效的事件处理模式(reactor模式、proactor模式)
前言 同步I/O模型通常用于实现Reactor模式 异步I/O模型则用于实现Proactor模式 最后我们会使用同步I/O方式模拟出Proactor模式 一、Reactor模式 Reactor模式特点 它要求主线程(I/O处理单元)只负责监听文件描述符上是否有事件发生,有的话就立即将时间通知工作线程(逻辑单元)。除此之外,主线程不做任何其他实质性的工作 读写数据,接受新的连接,以及处...
为什么要学数据结构?
一、前言 在可视化化程序设计的今天,借助于集成开发环境可以很快地生成程序,程序设计不再是计算机专业人员的专利。很多人认为,只要掌握几种开发工具就可以成为编程高手,其实,这是一种误解。要想成为一个专业的开发人员,至少需要以下三个条件: 1) 能够熟练地选择和设计各种数据结构和算法 2) 至少要能够熟练地掌握一门程序设计语言 3) 熟知所涉及的相关应用领域的知识 其中,后两个条件比较容易实现,而第一个...
C语言魔塔游戏
很早就很想写这个,今天终于写完了。 游戏截图: 编译环境: VS2017 游戏需要一些图片,如果有想要的或者对游戏有什么看法的可以加我的QQ 2985486630 讨论,如果暂时没有回应,可以在博客下方留言,到时候我会看到。 下面我来介绍一下游戏的主要功能和实现方式 首先是玩家的定义,使用结构体,这个名字是可以自己改变的 struct gamerole { char n
进程通信方式总结与盘点
​ 进程通信是指进程之间的信息交换。这里需要和进程同步做一下区分,进程同步控制多个进程按一定顺序执行,进程通信是一种手段,而进程同步是目标。从某方面来讲,进程通信可以解决进程同步问题。 ​ 首先回顾下我们前面博文中讲到的信号量机制,为了实现进程的互斥与同步,需要在进程间交换一定的信息,因此信号量机制也可以被归为进程通信的一种方式,但是也被称为低级进程通信,主要原因为: 效率低:一次只可操作少量的...
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观
听说了吗?阿里双11作战室竟1根网线都没有
双11不光是购物狂欢节,更是对技术的一次“大考”,对于阿里巴巴企业内部运营的基础保障技术而言,亦是如此。 回溯双11历史,这背后也经历过“小米加步枪”的阶段:作战室从随处是网线,交换机放地上的“一地狼藉”;到如今媲美5G的wifi网速,到现场却看不到一根网线;从当年使用商用AP(无线路由器),让光明顶双11当天断网一分钟,到全部使用阿里自研AP……阿里巴巴企业智能事业部工程师们提供的基础保障...
在阿里,40岁的奋斗姿势
在阿里,40岁的奋斗姿势 在阿里,什么样的年纪可以称为老呢?35岁? 在云网络,有这样一群人,他们的平均年龄接近40,却刚刚开辟职业生涯的第二战场。 他们的奋斗姿势是什么样的呢? 洛神赋 “翩若惊鸿,婉若游龙。荣曜秋菊,华茂春松。髣髴兮若轻云之蔽月,飘飖兮若流风之回雪。远而望之,皎若太阳升朝霞;迫而察之,灼若芙蕖出渌波。” 爱洛神,爱阿里云 2018年,阿里云网络产品部门启动洛神2.0升...
关于研发效能提升的思考
研发效能提升是最近比较热门的一个话题,本人根据这几年的工作心得,做了一些思考总结,由于个人深度有限,暂且抛转引入。 三要素 任何生产力的提升都离不开这三个因素:人、流程和工具,少了其中任何一个因素都无法实现。 人,即思想,也就是古人说的“道”,道不同不相为谋,是制高点,也是高层建筑的基石。 流程,即方法,也是古人说的“法”。研发效能的提升,也就是要提高投入产出比,既要增加产出,也要减...
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple/ 
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
这种新手都不会范的错,居然被一个工作好几年的小伙子写出来,差点被当场开除了。
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca
2020年,冯唐49岁:我给20、30岁IT职场年轻人的建议
点击“技术领导力”关注∆  每天早上8:30推送 作者| Mr.K   编辑| Emma 来源| 技术领导力(ID:jishulingdaoli) 前天的推文《冯唐:职场人35岁以后,方法论比经验重要》,收到了不少读者的反馈,觉得挺受启发。其实,冯唐写了不少关于职场方面的文章,都挺不错的。可惜大家只记住了“春风十里不如你”、“如何避免成为油腻腻的中年人”等不那么正经的文章。 本文整理了冯
程序员该看的几部电影
##1、骇客帝国(1999) 概念:在线/离线,递归,循环,矩阵等 剧情简介: 不久的将来,网络黑客尼奥对这个看似正常的现实世界产生了怀疑。 他结识了黑客崔妮蒂,并见到了黑客组织的首领墨菲斯。 墨菲斯告诉他,现实世界其实是由一个名叫“母体”的计算机人工智能系统控制,人们就像他们饲养的动物,没有自由和思想,而尼奥就是能够拯救人类的救世主。 可是,救赎之路从来都不会一帆风顺,到底哪里才是真实的世界?
入职阿里5年,他如何破解“技术债”?
简介: 作者 | 都铎 作为一名技术人,你常常会听到这样的话: “先快速上线” “没时间改” “再缓一缓吧” “以后再解决” “先用临时方案处理” …… 当你埋下的坑越来越多,不知道哪天哪位同学就会踩上一颗雷。特别赞同“人最大的恐惧就是未知,当技术债可说不可见的时候,才是最让人不想解决的时候。” 作为一个程序员,我们反对复制粘贴,但是我们经常会见到相似的代码,相同的二方包,甚至整个代码...
Python绘图,圣诞树,花,爱心 | Turtle篇
每周每日,分享Python实战代码,入门资料,进阶资料,基础语法,爬虫,数据分析,web网站,机器学习,深度学习等等。 公众号回复【进群】沟通交流吧,QQ扫码进群学习吧 微信群 QQ群 1.画圣诞树 import turtle screen = turtle.Screen() screen.setup(800,600) circle = turtle.Turtle()...
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东
破14亿,Python分析我国存在哪些人口危机!
2020年1月17日,国家统计局发布了2019年国民经济报告,报告中指出我国人口突破14亿。 猪哥的朋友圈被14亿人口刷屏,但是很多人并没有看到我国复杂的人口问题:老龄化、男女比例失衡、生育率下降、人口红利下降等。 今天我们就来分析一下我们国家的人口数据吧! 一、背景 1.人口突破14亿 2020年1月17日,国家统计局发布了 2019年国民经济报告 ,报告中指出:年末中国大陆总人口(包括31个
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ......
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!
2020年的1月,我辞掉了我的第一份工作
其实,这篇文章,我应该早点写的,毕竟现在已经2月份了。不过一些其它原因,或者是我的惰性、还有一些迷茫的念头,让自己迟迟没有试着写一点东西,记录下,或者说是总结下自己前3年的工作上的经历、学习的过程。 我自己知道的,在写自己的博客方面,我的文笔很一般,非技术类的文章不想去写;另外我又是一个还比较热衷于技术的人,而平常复杂一点的东西,如果想写文章写的清楚点,是需要足够...
别低估自己的直觉,也别高估自己的智商
所有群全部吵翻天,朋友圈全部沦陷,公众号疯狂转发。这两周没怎么发原创,只发新闻,可能有人注意到了。我不是懒,是文章写了却没发,因为大家的关注力始终在这次的疫情上面,发了也没人看。当然,我...
Java坑人面试题系列: 包装类(中级难度)
Java Magazine上面有一个专门坑人的面试题系列: https://blogs.oracle.com/javamagazine/quiz-2。 这些问题的设计宗旨,主要是测试面试者对Java语言的了解程度,而不是为了用弯弯绕绕的手段把面试者搞蒙。 如果你看过往期的问题,就会发现每一个都不简单。 这些试题模拟了认证考试中的一些难题。 而 “中级(intermediate)” 和 “高级(ad
深度学习入门笔记(十八):卷积神经网络(一)
欢迎关注WX公众号:【程序员管小亮】 专栏——深度学习入门笔记 声明 1)该文章整理自网上的大牛和机器学习专家无私奉献的资料,具体引用的资料请看参考文献。 2)本文仅供学术交流,非商用。所以每一部分具体的参考资料并没有详细对应。如果某部分不小心侵犯了大家的利益,还望海涵,并联系博主删除。 3)博主才疏学浅,文中如有不当之处,请各位指出,共同进步,谢谢。 4)此属于第一版本,若有错误,还需继续修正与...
这个世界上人真的分三六九等,你信吗?
偶然间,在知乎上看到一个问题 一时间,勾起了我深深的回忆。 以前在厂里打过两次工,做过家教,干过辅导班,做过中介。零下几度的晚上,贴过广告,满脸、满手地长冻疮。 再回首那段岁月,虽然苦,但让我学会了坚持和忍耐。让我明白了,在这个世界上,无论环境多么的恶劣,只要心存希望,星星之火,亦可燎原。 下文是原回答,希望能对你能有所启发。 如果我说,这个世界上人真的分三六九等,...
节后首个工作日,企业们集体开晨会让钉钉挂了
By 超神经场景描述:昨天 2 月 3 日,是大部分城市号召远程工作的第一天,全国有接近 2 亿人在家开始远程办公,钉钉上也有超过 1000 万家企业活跃起来。关键词:十一出行 人脸...
Java基础知识点梳理
Java基础知识点梳理 摘要: 虽然已经在实际工作中经常与java打交道,但是一直没系统地对java这门语言进行梳理和总结,掌握的知识也比较零散。恰好利用这段时间重新认识下java,并对一些常见的语法和知识点做个总结与回顾,一方面为了加深印象,方便后面查阅,一方面为了学好java打下基础。 Java简介 java语言于1995年正式推出,最开始被命名为Oak语言,由James Gosling(詹姆
2020年全新Java学习路线图,含配套视频,学完即为中级Java程序员!!
新的一年来临,突如其来的疫情打破了平静的生活! 在家的你是否很无聊,如果无聊就来学习吧! 世上只有一种投资只赚不赔,那就是学习!!! 传智播客于2020年升级了Java学习线路图,硬核升级,免费放送! 学完你就是中级程序员,能更快一步找到工作! 一、Java基础 JavaSE基础是Java中级程序员的起点,是帮助你从小白到懂得编程的必经之路。 在Java基础板块中有6个子模块的学
B 站上有哪些很好的学习资源?
哇说起B站,在小九眼里就是宝藏般的存在,放年假宅在家时一天刷6、7个小时不在话下,更别提今年的跨年晚会,我简直是跪着看完的!! 最早大家聚在在B站是为了追番,再后来我在上面刷欧美新歌和漂亮小姐姐的舞蹈视频,最近两年我和周围的朋友们已经把B站当作学习教室了,而且学习成本还免费,真是个励志的好平台ヽ(.◕ฺˇд ˇ◕ฺ;)ノ 下面我们就来盘点一下B站上优质的学习资源: 综合类 Oeasy: 综合
你也能看懂的:蒙特卡罗方法
蒙特卡罗方法,也称统计模拟方法,是1940年代中期由于科学技术的发展和电子计算机的发明,而提出的一种以概率统计理论为指导的数值计算方法。是指使用随机数(或更常见的伪随机数)来解决很多计算问题的方法 蒙特卡罗方法可以粗略地分成两类:一类是所求解的问题本身具有内在的随机性,借助计算机的运算能力可以直接模拟这种随机的过程。另一种类型是所求解问题可以转化为某种随机分布的特征数,比如随机事件出现的概率,或...
如何优雅地打印一个Java对象?
你好呀,我是沉默王二,一个和黄家驹一样身高,和刘德华一样颜值的程序员。虽然已经写了十多年的 Java 代码,但仍然觉得自己是个菜鸟(请允许我惭愧一下)。 在一个月黑风高的夜晚,我思前想后,觉得再也不能这么蹉跎下去了。于是痛下决心,准备通过输出的方式倒逼输入,以此来修炼自己的内功,从而进阶成为一名真正意义上的大神。与此同时,希望这些文章能够帮助到更多的读者,让大家在学习的路上不再寂寞、空虚和冷。 ...
相关热词 c# 为空 判断 委托 c#记事本颜色 c# 系统默认声音 js中调用c#方法参数 c#引入dll文件报错 c#根据名称实例化 c#从邮件服务器获取邮件 c# 保存文件夹 c#代码打包引用 c# 压缩效率
立即提问