<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I’m having issues using C++ code with the Swift PM. Simple examples work fine as long as I don’t use anything in the C++ standard library, otherwise the programs don’t compile.<div class=""><br class=""></div><div class="">My guess is that the Swift PM internally uses clang (as opposed to clang++) to compile C++ code, and while clang can compile normal C++ code it can’t link against the C++ standard library. Is that it?</div><div class=""><br class=""></div><div class="">The second example on the link below shows working C++ code with Swift. If I try to add a simple call to std::cout, for instance, the program stops compiling.</div><div class=""><br class=""></div><div class="">Thanks for any help :)</div><div class=""><br class=""></div><div class="">link: <a href="http://ankit.im/swift/2016/05/21/creating-objc-cpp-packages-with-swift-package-manager/" class="">http://ankit.im/swift/2016/05/21/creating-objc-cpp-packages-with-swift-package-manager/</a></div><div class=""><br class=""></div></body></html>