News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Linking with MASM32???

Started by darkdreams, December 21, 2004, 02:20:40 PM

Previous topic - Next topic

darkdreams

i am a newbie when it comes to assembely, i have managed to compile my source code into one '.obj' file but how do i get the '.obj' file into an exe????
i have tried invoking the linker but it isnt working, can someome give me some help or even a '.bat' file that will instantly link the '.obj' file.

If it helps i used this '.bat' file to compile my source into a '.obj' file:
\masm32\bin\ml /c /coff /Cp sha.asm

pause


Thanks
darkdreams

hutch--

If you have the MASM32 Project, just have a look at the batch files used in the BIN directory. You can also build a makeit.bat directly from the editor to build your exe file. What you are looking for is the link line,

drv:\path\link.exe /SUBSYSTEM:WINDOWS "yourfile.obj"


Run the link /? command line to get all of the options if you want to do it all manually. Note there are different subsystems and you use CONSOLE if you want a console app.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Robert Collins

For small projects that don't require alot of special handling I just use the 'Assenble and Link' feature of QEditor. After that when things get more complex I then use a .bat file.