News:

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

A2005 Symbol redef error on example code

Started by HJRS, February 14, 2012, 08:47:50 AM

Previous topic - Next topic

HJRS

When trying to compile any of the example code that comes with the masm32 install i get the following error:

\masm32\include\windows.inc(12642) : error A2005: symbol redefinition : Red
\masm32\include\windows.inc(12643) : error A2005: symbol redefinition : Green
\masm32\include\windows.inc(12644) : error A2005: symbol redefinition : Blue
\masm32\include\windows.inc(13891) : error A2005: symbol redefinition : fReserved
\masm32\include\windows.inc(21588) : error A2005: symbol redefinition : Type1
\masm32\include\windows.inc(21633) : error A2005: symbol redefinition : Type1
\masm32\include\windows.inc(21637) : error A2005: symbol redefinition : Type1
\masm32\include\windows.inc(21640) : fatal error A1010: unmatched block nesting

Anyone else run into these issues? When googling the redef errors it's suggested to either use the masm32rt.inc or at least put the windows.inc include before all the others, this doesn't seem to help though.

cheers


HJRS

Sorry guys, I was being a newb and using the wrong command line arguments. In case anyone else has the same issue using the following will fix the it:

ml /c /coff listbox.asm
link /SUBSYSTEM:WINDOWS /OPT:NOREF listbox.obj

jj2007

The /NOREF is not needed. Even the subsystem is windows by default.