@@ -7,14 +7,15 @@ C++ Language Interoperability Layer
7
7
Loading Dynamic shared library
8
8
==============================
9
9
10
- The CppInterop comes with using it is a dynamic shared library,
11
- **libclangCppInterOp.so ** which resides in the CppInterOp/build/lib/.
10
+ The CppInterop comes with using it is a dynamic shared library, which resides
11
+ in the build/lib/ after building CppInterOp following the instructions in
12
+ :doc: `Installation and usage <InstallationAndUsage >` .
12
13
13
14
.. code-block :: bash
14
15
15
16
libInterop = ctypes.CDLL(" ./libclangCppInterOp.so" )
16
17
17
- The above method of usage is for Python; for C, we can include the headers of
18
+ The above method of usage is for Python on Linux ; for C, we can include the headers of
18
19
the library. Including this library in our program enables the user to use
19
20
the abilities of CppInterOp. CppInterOp helps programmers with multiple
20
21
verifications such as isClass, isBoolean, isStruct, and many more in different
@@ -33,21 +34,6 @@ and LLVM.
33
34
We can consider clang-repl as a state manager, where CppInterOp allows you to
34
35
query the state from the state manager. Thereafter, cppyy uses this to create
35
36
Python objects for C++.
36
-
37
- .. code-block :: bash
38
-
39
- # Apply the patches for development
40
- compgen -G " ../patches/llvm/clang16-*.patch" > /dev/null
41
- && find ../patches/llvm/clang16-* .patch -printf " %f\n"
42
- && git apply ../patches/llvm/clang16-* .patch
43
-
44
- .. code-block :: bash
45
-
46
- # Use the versions of llvm with above patches applied
47
- -DClang_DIR=/usr/lib/llvm-16/build/lib/cmake/clang\
48
- -DLLVM_DIR=/usr/lib/llvm-16/build/lib/cmake/llvm
49
-
50
-
51
37
This section briefly describes all the key **features ** offered by
52
38
CppInterop. If you are just getting started with CppInterop, then this is the
53
39
best place to start.
@@ -318,4 +304,4 @@ with the Installation And Usage Guide.
318
304
319
305
.. _CPyCppyy : https://github.com/wlav/CPyCppyy
320
306
321
- .. _cppyy-backend : https://github.com/wlav/cppyy-backend
307
+ .. _cppyy-backend : https://github.com/wlav/cppyy-backend
0 commit comments