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.
_GNU_SOURCE
1 parent 893a3e3 commit 4c56995Copy full SHA for 4c56995
include/pybind11/detail/non_limited_api.h
@@ -10,7 +10,8 @@
10
#define NOMINMAX 1
11
#include <windows.h>
12
#else
13
-#define _GNU_SOURCE 1 // `<dlfcn.h>` needs this to define the things we need.
+// NOTE: If you get `error: unknown type name 'Dl_info'` when using this patched `PYBIND11_MODULE(...)`,
14
+// define `_GNU_SOURCE`. Use compiler flags to make sure it's early enough.
15
#include <dlfcn.h> // `dladdr` and friends.
16
#endif
17
0 commit comments