dll export implies default visibility, but class pybind11... has already been declared with a different visibility #4047
Unanswered
FredGomes92
asked this question in
Q&A
Replies: 1 comment
-
Hi, anyone can help ? Thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I am trying to bind some C++ code with Python using Pybind11 and I am getting this error: "dll export implies default visibility, but class pybind11... has already been declared with a different visibility" (check image in the link below)
In Linux it compiles and runs without any issue. However, in Windows it fails to compile with this issue.
Here my Makefile:
Main.cpp it is a C++ code to read a DLL and I want to be able to interface it with python. Anyone has any idea why I am having this error ?
Thank you in advance,
Fred
Beta Was this translation helpful? Give feedback.
All reactions