- Install crossdev:
emerge -av crossdev
- Install the toolchain:
crossdev --target x86_64-w64-mingw32
- Install mingw:
brew install mingw-w64
- Compile:
x86_64-w64-mingw32-g++ -std=c++20 main.cpp -o nse -mwindows -municode -lxmllite -lshlwapi -static
- Run:
wine ./nse.exe