clang

OS X: ld: library not found for -lstdc++

余生长醉 提交于 2020-08-27 06:52:42
问题 I'm trying to wrap a Python lib around a C++ lib and distutils is failing for me on OS X. Here are the relevant lines from my setup.py: if sys.platform.startswith("darwin"): extra_compile_args_setting = ["-std=c++1z", "-stdlib=libc++", "-O3"] Here's the relevant output: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/x/anaconda/include -arch x86_64 -I/Users/x/anaconda/include -arch x86_64 -I../../cpp_client/libsrc -I../..

OS X: ld: library not found for -lstdc++

笑着哭i 提交于 2020-08-27 06:52:21
问题 I'm trying to wrap a Python lib around a C++ lib and distutils is failing for me on OS X. Here are the relevant lines from my setup.py: if sys.platform.startswith("darwin"): extra_compile_args_setting = ["-std=c++1z", "-stdlib=libc++", "-O3"] Here's the relevant output: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/x/anaconda/include -arch x86_64 -I/Users/x/anaconda/include -arch x86_64 -I../../cpp_client/libsrc -I../..

Setting path to Clang library in CMake

夙愿已清 提交于 2020-08-26 07:41:57
问题 I build llvm from git and want to use the libraries in a project, especially the libclang. The "makefiles" are generated by means of CMake and for the LLVM part I found the setting LLVM_DIR to reroute the path for the llvm libraries, but for Clang I cannot find such a variable and I still see in my link line (it is a Cygwin system): /usr/lib/libclang.dll.a /usr/lib/libclangTooling.dll.a . Question: which environment variable do I set to get the right build Clang libraries? 回答1: The variable

clang-format: always break if params don't fit?

好久不见. 提交于 2020-08-22 07:20:49
问题 I can't figure out if it's possible to configure clang-format to always break if parameters don't fit, ie: // Try this first: SomeCall(aaa, bbb, ccc); // If doesn't fit, try this: SomeCall( aaa, bbb, ccc); // If still doesn't fit, do NOT try this: SomeCall(aaa, bbb, ccc); // and NOT this: SomeCall(aaa, bbb, ccc); // but immediately do this: SomeCall( aaa, bbb, ccc); So far I've concluded that it's not possible to do this with clang-format 3.4. Is it correct? 回答1: In newer version of clang