News:

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

srfpala

Running MASM32 on XP Pro SP3  Using Irvine32.inc

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

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 Irvine32.inc file

Any suggestions?
TIA
  Bob

dedndave

#1
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\Masm32Rt.inc

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

srfpala

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