The MASM Forum

General => The Campus => Topic started by: tbohon on March 27, 2015, 04:15:50 AM

Title: Path Question
Post by: tbohon on March 27, 2015, 04:15:50 AM
Caveat:  working on an employer owned and controlled machine although with permission to install and use MASM32 ...

Having problems with the MASM editor finding source and object files during assembly/linking.

MASM is installed on C:\MASM32 and the system path variable includes C:\MASM32;c:\MASM32\BIN .  My working programs are on D:\MASMWORK and try as I might I can't figure out how to get the programs on D: to assemble and link from within the editor.

Would LOVE to be able to use MASM more (old time assembly programmer from 200 years ago  :lol: ) but am stumped.

Thanks in advance for any tips/pointers/fixes or suggestions.

Tom
Title: Re: Path Question
Post by: dedndave on March 27, 2015, 05:20:21 AM
there's probably a work-around

but, it's best if the project files and masm32 install are on the same drive
is it too impractical to move the project to C: ?
Title: Re: Path Question
Post by: tbohon on March 27, 2015, 05:29:01 AM
I can probably do that but the C: drive is pretty full (it's small) and the D: drive is a 1TB drive almost empty.

What if I uninstalled and then reinstalled MASM32 on the D: drive?  Everything would be on the same drive ... would MASM32 care if it isn't on C:???
Title: Re: Path Question
Post by: dedndave on March 27, 2015, 05:35:18 AM
that's also a good solution   :t

you don't have to reinstall, really
just copy the masm32 folder to the other drive and change the two PATH items to D:

in fact, one possible scenario would be to have masm32 installed on multiple drives
basically, it needs the include, lib, and macro sub-folders to assemble
of course, the binaries are also needed, but do not need to be on the local drive
Title: Re: Path Question
Post by: tbohon on March 27, 2015, 06:19:16 AM
I can move 'em in short order ... thanks!!!!!!!!!
Title: Re: Path Question
Post by: tbohon on March 27, 2015, 06:26:13 AM
And the move of MASM32 to D: along with the edits of the Include and Path variables fixed the problem ... YAYYYYYYYYYYY!

Thank you SO much for the quick response ... had totally forgotten that MASM likes to have everything on the same drive until you mentioned it.

Greatly appreciate the help and now I can work in MASM as much as I like ...  :greenclp:

Tom
Title: Re: Path Question
Post by: jj2007 on March 27, 2015, 06:40:13 AM
Tom,

No need to set environment variables. Just use

include \masm32\include\masm32rt.inc

as first line. Open that file in Notepad to understand why. Avoid to put a drive letter, i.e. no D:\masm32...

Welcome to the Forum :icon14:
Title: Re: Path Question
Post by: hutch-- on March 27, 2015, 12:54:20 PM
Hi Tom,

Welcome on board. JJ is correct, there is no need to set the paths as they are set in the include file. Its done like this so that folks who have multiple programming environments don't end up with the wrong versions of LINK and other similar tools.
Title: Re: Path Question
Post by: dedndave on March 27, 2015, 02:37:27 PM
true - the path need not be set
but, he had 2 items in the path environment, already
if he deletes those folders, he might have problems with non-existant paths
so - change the drive letter to make them valid again
Title: Re: Path Question
Post by: Gunther on March 29, 2015, 05:15:34 AM
Hi Tom,

welcome to the forum.

Gunther
Title: Re: Path Question
Post by: Siekmanski on March 29, 2015, 09:06:10 AM
Welcom to the forum  :t
Title: Re: Path Question
Post by: tbohon on March 30, 2015, 12:25:32 PM
Gunther/Siekmanskie ... thanks!!!