Closed felixfeliz closed 7 months ago
This is https://github.com/wlav/cppyy/issues/175 . I don't think it's related to std::string
per se, but interesting finding that that initialization v.s. assignment makes a difference.
I still need to try the docker recipe provided in the other issue. Hopefully that allows me to reproduce it.
I see, sorry for the duplicate issue. It does seem to be the same problem. Let me know if there is anything I can test or help with.
Should all be good now with release 3.1.0. Feel free to reopen if you find otherwise.
I installed version 3.0.0 of cppyy in a virtual environment using pip. When I initialize an std::string, I get an error related to a missing definition of std::basic_string. More precisely, if I run
the code fails with
However, if I change the code to
separating the instantiation and initialization of the string, it works as expected.
I also compiled the current version from source and I got the same problem. When I use version 2.4.2 of cppyy both codes work as expected.
I am running Gentoo Linux with gcc 12.3.1 and Python 3.11.5.