News:

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

Can't assemble tutorials

Started by bmearns, February 14, 2007, 05:33:26 PM

Previous topic - Next topic

bmearns

I'm just getting started with MASM32, and I can't get the tutorial codes assembled. Or rather, I think the problem is in linking. I cd'd to masm32\tutorial\console\demo1 folder, and passed hello.asm as the parameter to ml.exe, and it gave me this:

===============================================================
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

Assembling: hello.asm
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

/z2
"hello.obj"
"hello.exe"
NUL
LINK : warning LNK4044: unrecognized option "z2"; ignored
hello.obj : warning LNK4033: converting object format from OMF to COFF
hello.exe : fatal error LNK1136: invalid or corrupt file
===============================================================

I tried it with some of my own x86 code, as well, which works with the masm16 assembler/linker, and got the same thing.

I'm assuming I have something set up wrong. Any help?

Thanks

-Brian

ragdog

hi

make a bat or cmd and try this

\masm32\bin\ml.exe /c /coff hello.asm
\masm32\bin\link.exe /SUBSYSTEM:CONSOLE hello.obj

i hope this help!

greetz
ragdog