Skip to content

Commit 7859697

Browse files
authored
Name wrangling c++ caveat in Readme (#511)
* Name wrangling c++ caveat in Readme Try to add a small help for people not super familiar in C++ and name wrangling. * Update README.md * Update README.md
1 parent cc76c3e commit 7859697

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ fn main() {
150150
When using C++ library compilation switch, the `CXX` and `CXXFLAGS` env
151151
variables are used instead of `CC` and `CFLAGS` and the C++ standard library is
152152
linked to the crate target.
153+
Remember that C++ does name mangling so `extern "C"` might be required to enable rust linker to find your functions.
153154

154155
## CUDA C++ support
155156

0 commit comments

Comments
 (0)