VisualMASM icon indicating copy to clipboard operation
VisualMASM copied to clipboard

Multi-modular compiling preprocessor issue

Open trapazza opened this issue 6 years ago • 1 comments

Hi, I'm new to VisualMASM and I'm having problems while trying to compile a multi-modular project.

I have an .inc file which contains an include guard like this:

ifndef __FILE_GUARD__INC __FILE_GUARD__INC equ 1 . . . endif

but it seems that the symbol is just defined for the source file currently being compiled. I was wondering if VisualMASM is running an instance of ML for every .asm file instead of passing in all .asm files to a single instance of the compiler?

Thanks in advance.

trapazza avatar Jan 26 '18 18:01 trapazza

Visual MASM actually creates a temporary list file (@) and passes that into ML. After the assembly and build process is completed, it removes this temporary file. So, even if you have hundreds of assembly files, it is one process.

If you need to add additional files to the assembly / build process, you can add these in the project options of your project.

ThomasJaeger avatar May 14 '18 21:05 ThomasJaeger