std::stringstream unexpected behavior when use pybind11 module in jupyter cell which the module was staticlly linked with stdc++(linux only) #5108
Unanswered
buchengsyh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
the demo code below:
The necessary step to reproduce the problem is to add the
-static-libstdc++
link flag when compiling example shared library.copy the python test code to run inside of jupyter cell:
You will see a strange result that the output of the ss() function is missing the number 3.14
But if executed directly from the terminal, it works fine and is not lost
Can anyone give me some advice and/or tips?
Beta Was this translation helpful? Give feedback.
All reactions