You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/build_tools.md
+62-1
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ See crates.io's [documentation on the matter][build-script-docs] for more inform
9
9
| Recipe | Crates | Categories |
10
10
|--------|--------|------------|
11
11
|[Compile and link statically to a bundled C library][ex-cc-static-bundled]|[![cc-badge]][cc]|[![cat-development-tools-badge]][cat-development-tools]|
12
+
|[Compile and link statically to a bundled C++ library][ex-cc-static-bundled-cpp]|[![cc-badge]][cc]|[![cat-development-tools-badge]][cat-development-tools]|
Linking a bundled C++ library is very similar to linking a bundled C library. The two core differences when compiling and statically linking a bundled C++ library are specifying a C++ compiler via the builder method [`cpp(true)`][cc-build-cpp] and preventing name mangling by the C++ compiler by adding the `extern "C"` section at the top of our C++ source file.
Copy file name to clipboardExpand all lines: src/intro.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,7 @@ community. It needs and welcomes help. For details see
131
131
| Recipe | Crates | Categories |
132
132
|--------|--------|------------|
133
133
|[Compile and link statically to a bundled C library][ex-cc-static-bundled]|[![cc-badge]][cc]|[![cat-development-tools-badge]][cat-development-tools]|
134
-
134
+
|[Compile and link statically to a bundled C++ library][ex-cc-static-bundled-cpp]|[![cc-badge]][cc]|[![cat-development-tools-badge]][cat-development-tools]|
135
135
136
136
{{#include links.md}}
137
137
@@ -142,6 +142,7 @@ community. It needs and welcomes help. For details see
0 commit comments