cd third_party/xplatcppwindowsdll git checkout v3.0.0 cd ../.. git add third_party/xplatcppwindowsdll If you use vcpkg or Conan, update your manifest:
// vcpkg.json "dependencies": [ "xplatcppwindowsdll", // version >=3.0.0 ] The function signature for add_xplatcpp_dll has changed to xplatcpp_windows_dll . Here’s a migration diff: xplatcppwindowsdll updated
The updated module automatically generates a .def file for MSVC, ensuring that even C++ mangled names are correctly exported without needing extern "C" wrappers. The update adds native integration with Windows side-by-side (SxS) assemblies . You can now annotate your cross-platform CMakeLists.txt with version ranges: cd third_party/xplatcppwindowsdll git checkout v3
This article was last updated in April 2026, based on xplatcppwindowsdll version 3.0.0. The update adds native integration with Windows side-by-side
Introduction The software development landscape has long been defined by a central tension: the desire for native performance and the need for cross-platform compatibility. For C++ developers, this often translates into building shared libraries (DLLs on Windows, SOs on Linux, DYLIBS on macOS) that can be called from higher-level applications written in Python, C#, or even JavaScript.
extern "C" XPLATCPP_PUBLIC int add(int a, int b) return a + b;