We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fcf1ba commit 3409510Copy full SHA for 3409510
scripter-class-in-class/CMakeLists.txt
@@ -1,5 +1,6 @@
1
cmake_minimum_required(VERSION 3.4)
2
project(scripting VERSION 1.0 LANGUAGES CXX)
3
+set(CMAKE_CXX_VISIBILITY_PRESET hidden)
4
5
set(PYBIND11_PYTHON_VERSION 3.4)
6
scripter-class-in-class/README.md
@@ -8,3 +8,11 @@ $ cmake -Dpybind11_DIR=/home/ale/bin/pybind11/share/cmake/pybind11 ..
8
$ make
9
$ ./scripting
10
~~~
11
+
12
+# Notes
13
14
+Pybind11 tries to set the visibilty for all symbols as hidden. In the `CMakeLists.txt` We need to set
15
16
+ set(CMAKE_CXX_VISIBILITY_PRESET hidden)
17
18
+because of the guard in the `script.h` file
0 commit comments