The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: darkdreams on December 21, 2004, 02:20:40 PM

Title: Linking with MASM32???
Post by: darkdreams on December 21, 2004, 02:20:40 PM
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
Title: Re: Linking with MASM32???
Post by: hutch-- on December 21, 2004, 02:37:45 PM
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.
Title: Re: Linking with MASM32???
Post by: Robert Collins on January 04, 2005, 10:56:40 PM
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.