Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Unresolved external symbols

Started by srfpala, May 22, 2013, 07:50:25 AM

Previous topic - Next topic


Running MASM32 on XP Pro SP3  Using

Attempting to use a Message Box
   INVOKE MessageBox, NULL, ADDR warningMsg,
         ADDR captionW,

Path contains E:\Masm32\Lib

I get a clean assembly but I see
MessageBoxA.obj : error LNK2001: unresolved external symbol _ExitProcess@4
MessageBoxA.obj : error LNK2001: unresolved external symbol _MessageBoxA@16
Neither symbol is used in my code nor in the file

Any suggestions?


the masm32 package is not set up to use PATH
at least, not for LIB's

the linker will examine the LIB or LIBPATH environment variables, though (i forget which)

the easiest way to include the most commonly used includes and libraries is

        INCLUDE    \Masm32\Include\

it also takes care of .MODEL, OPTION CaseMap, and it selects the .486 processor

you can look inside that file with a text editor to see what it does


Hard to believe how fast your reply was!
And it worked.