Can we using cxx interoperability in windows with STL?

We want to use swift and opencv in windows.
We can run the basic example of cxx interoperability in windows. But when we add "import std.string" in main.swift there is a build error no such module 'std.string'.
What should we do can using opencv with swift in windows, thanks?
We using swift 5.7.3 and vs2022 17.4.4.

This would be a problem. Anything less than the latest snapshot is likely not a good idea if you want to experiment with C++ interop. The latest snapshot should have the cxx module included.

1 Like

Hi.
Thanks for your reply.
After we install the latest snapshot of swift (January 2, 2023). We got this error

XXX\VC\Tools\MSVC\14.34.31933\include\limits:145:54: error: use of undeclared identifier 'FLT_RADIX'.

Interesting; I've not seen that, but that seems to be an issue with the modules definition. I think that would require someone to play around with the module map definitions to get it to work with that particular toolset. IIRC, I was using a pre-release toolset when I was trying to get the cxx module working.

Thanks.

We'll wait another snapshot and test.