Skip to content

Instantly share code, notes, and snippets.

@Turupawn
Created June 24, 2018 21:00
Show Gist options
  • Save Turupawn/bc17c812764cb2190d53dc84194f0442 to your computer and use it in GitHub Desktop.
Save Turupawn/bc17c812764cb2190d53dc84194f0442 to your computer and use it in GitHub Desktop.
Building a haxe ndll on x64
@echo off
mkdir bin
cl /D_USRDLL /D_WINDLL ./src/modioWrapper.cpp ./src/modioWrapperCallbacks.cpp lib/windows64/modio.lib /I include /link /DLL /OUT:bin/modioWrapperWindows_x64.ndll
haxe -cp src -main Main -cpp bin -D HXCPP_M64
copy lib\windows64\modio.dll bin
cd bin
Main.exe
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment