News:

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

Windows environment settings for MASM32

Started by ffarkas, March 26, 2009, 08:20:42 AM

Previous topic - Next topic

ffarkas

Hi,

What environment settings like PATH, LIB, ... are required for running MASM32 on Windows XP?

Thanks in advance for an answer!

ffarkas

jj2007

No need to set or change any environment variables, as long as you use proper paths in your code:
Quoteinclude \masm32\include\masm32rt.inc

.code
start:
   exit
end start

ffarkas

Hi JJ2007,

Thanks for Your answer!

My problem is exactly what You excluded: I can't use the proper path. I even couldn't install masm32 the proper way.

Up to now, I have copied the folder masm32\ with the complete subfolder-structure of a former proper installation on another windows station.

I have to install masm32 manually. Please, guide me through all the necessary steps.

Thanks in advance and kind regards
ffarkas

ToutEnMasm

In case you can't install masm32 at a normal place (there is post here about "masm32 install") ,you can just build an environment like this:

Quote
SET PATH=  (the full path to the executable  ...\masm32\bin)
SET INCLUDE= (full path to include files ,..\masm32\include )
SET LIB=   (full path to LIB files ,..\masm32\LIB )
;optionnal
SET ML= (options for ML)
SET LINK= ...........

Then you can write a source file,without paths (except for those who aren't in the declared path)
Use a batch to compile your prog.

sample:
Quote
@echo on
SET PATH=\MASM32\BIN
SET LIB=\MASM32\LIB
SET INCLUDE=\MASM32\INCLUDE;"Path on io.mac file"
SET ML=/c /coff /nologo
SET LINK=/SUBSYSTEM:WINDOWS /NOLOGO
SET FICHIER=MOVCURS
rc /v %FICHIER%.rc
cvtres /machine:ix86 /OUT:%FICHIER%.zzz %FICHIER%.res
del *.pdb
del *.ilk
del *.obj
del *.exe
pause
ml %FICHIER%.asm

pause
Link %FICHIER%.obj %FICHIER%.zzz

pause


But prefered method is to install successfully masm32 at the root of a disk.Just take all defauts options for a correct result.

ffarkas

Hi ToutEnMasm,

Thanks a lot!

I'll try to do it as You suggested it.

Kind Regards
ffarkas

PS: Instead of Y:\ I have to install masm32 in Y:\Data\

hutch--

ffarkas,

The MASM32 SDK is not designed to be installed in the manner you appear to want, it was done this way on purpose years ago to avoid the problem you are having now, it uses hard coded paths to a fixed and known directory where the correct binaries are available. By using the "environment" to specify paths you get the problem that MASM32 was designed to avoid, getting the wrong versions of critical binaries like ML. LINK, RC etc .....

There is nothing wrong with the environment method but few know how to set it up properly and some massive number of people failed to set it up properly or get the project to run properly. With the method that is set up by the installation you have none of those problems, thats why its done that way.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

jj2007

I understand that you cannot use a root drive. Is drive mapping possible?