Hi all

I have been trying to solve this error for weeks and cant. Hope you guys can help!

begining part of the code is:

  ;game.asm
  .486
  .model flat, stdcall
  option casemap :none

;===============standard headers=============
  include \masm32\include\windows.inc
  include \masm32\macros\macros.asm

;===============minimal headers===============
  include \masm32\include\masm32.inc
  include \masm32\include\user32.inc
  include \masm32\include\gdi32.inc
  include \masm32\include\kernel32.inc
 
;============minimal librarys===============
  includelib \masm32\lib\masm32.lib
  includelib \masm32\lib\user32.lib
  includelib \masm32\lib\gdi32.lib
  includelib \masm32\lib\kernel32.lib
.....
....

i ran masm32 with the statement: ml /Fl /Sa /WX game.ASM
i have tried using linkers: link.exe  5.12.8078 and LINK.exe 5.60.339

if used link.exe; (5.12.8078)
i get errors:
LNK4044: unrecognised option "z2"; ignored,
LNK4033: convert object fromat from OMF to COFF
LIK1181: cannot open input file "game.exe"

If used LINK.exe (5.60.339)
i get error:  L1104: masm32.lib: not valid library.

Is the problem with the linker? where can i get a higher linker version?

Thank you

Posted on 2009-09-28 10:44:32 by Tok
>> LIK1181: cannot open input file "game.exe"
Check if game.exe isn't already running. Kill that process.
Posted on 2009-09-28 11:00:50 by Ultrano

>> LIK1181: cannot open input file "game.exe"
Check if game.exe isn't already running. Kill that process.


LINK complains about input file, probably it's command line was invalid.


if used link.exe; (5.12.8078)
i get errors:
LNK4044: unrecognised option "z2"; ignored,
LNK4033: convert object fromat from OMF to COFF
LIK1181: cannot open input file "game.exe"

If used LINK.exe (5.60.339)
i get error:  L1104: masm32.lib: not valid library.


Source appears to be targeted for 32-bit Windows, therefore object file format should be COFF. Try to add ML option /coff (with LINK 5.12.8078, which seems to be proper version, because it complains about old OMF format of object file).

ML can compile to both OMF and COFF object files, without /coff switch it formats command line for 16-bit LINK (which, in turn, is totally different from 32-bit and don't understand COFF libraries).
Posted on 2009-10-13 20:37:44 by baldr