News:

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

"Console Assemble and Link" getting A1000 errors

Started by uk_pete_2000, August 13, 2007, 06:49:37 PM

Previous topic - Next topic

uk_pete_2000

I know this is a very newbie question, and I am sure I will have plenty more to follow, but for now plse bear with me.

I am running -

; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««

;                 Build this with the "Project" menu using
;                       "Console Assemble and Link"

; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««

    .486                                    ; create 32 bit code
    .model flat, stdcall                    ; 32 bit memory model
    option casemap :none                    ; case sensitive

    include \masm32\include\windows.inc     ; always first
    include \masm32\macros\macros.asm       ; MASM support macros

  ; -----------------------------------------------------------------
  ; include files that have MASM format prototypes for function calls
  ; -----------------------------------------------------------------
    include \masm32\include\masm32.inc
    include \masm32\include\gdi32.inc
    include \masm32\include\user32.inc
    include \masm32\include\kernel32.inc

  ; ------------------------------------------------
  ; Library files that have definitions for function
  ; exports and tested reliable prebuilt code.
  ; ------------------------------------------------
    includelib \masm32\lib\masm32.lib
    includelib \masm32\lib\gdi32.lib
    includelib \masm32\lib\user32.lib
    includelib \masm32\lib\kernel32.lib

    .code                       ; Tell MASM where the code starts

; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««

start:                          ; The CODE entry point to the program

    print chr$("Hey, this actually works.",13,10)
    exit

; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««

end start                       ; Tell MASM where the program ends

Running MASM V9, and using the 'Build All' under the Project Menu I get a A1000: can not open file - Hello.asm. All the Paths are Single words and Set Paths has both masm32 and masm32\bin included.

Vortex

Hi uk_pete_2000,

Welcome to the forum.

Could you post here the full path of your source file?

uk_pete_2000


Vortex

Hi Pete,

Here is what I found about the error message :

QuoteMicrosoft Macro Assembler Reference
ML Fatal Error A1000

cannot open file: filename

The assembler was unable to open a source, include, or output file.

One of the following may be a cause:

      The file does not exist.
   
      The file is in use by another process.
   
      The filename is not valid.
   
      A read-only file with the output filename already exists.
   
      The current drive is full.

      The current directory is the root and is full.

      The device cannot be written to.
   
      The drive is not ready.

http://msdn2.microsoft.com/zh-tw/library/xkb5t8f2(vs.80).aspx

uk_pete_2000

Yes I read that, and none of it seems to be relevent.

The only one which I am not sure about is - A read-only file with the output filename already exists, yet the Hello.asm is not set to read only

Pete

uk_pete_2000

Found it.

I thought it had 'asm' extension on the file, but it seems I was wrong. Correct this and Build All works fine