Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Linking Microsoft 64 bit MASM object modules with the GNU linker

Started by Vortex, March 03, 2024, 09:36:40 PM

Previous topic - Next topic


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