The MASM Forum

Microsoft 64 bit MASM => Examples => Topic started by: Vortex on March 03, 2024, 09:36:40 PM

Title: Linking Microsoft 64 bit MASM object modules with the GNU linker
Post by: Vortex on March 03, 2024, 09:36:40 PM
Here are some quick examples.

The linker from the FreeBASIC package :

set PATH=%PATH%;D:\FreeBASIC\bin\win64

\masm64\bin64\ml64.exe /c Window.asm
ld --entry start -subsystem windows -o Window.exe Window.obj -LD:\FreeBasic\lib\win64 -lkernel32 -luser32 -s

The linker from the MSYS2 package :

set PATH=%PATH%;C:\msys64\mingw64\bin

\masm64\bin64\ml64.exe /c Window.asm
ld --entry start -subsystem windows -o Window2.exe Window.obj -LC:\msys64\mingw64\lib -lkernel32 -luser32 -s

https://www.msys2.org