The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Scalemail Ted on April 22, 2010, 03:24:31 AM

Title: Where do I find .libs & .incs?
Post by: Scalemail Ted on April 22, 2010, 03:24:31 AM
I need to include this library in order to assemble.


msvcrt.inc, msvcrt.lib

Kernel32.inc, Kernel32.lib

advapi32.inc, advapi32.lib

Where can I find these files to add them in?
Title: Re: Where do I find .libs & .incs?
Post by: MichaelW on April 22, 2010, 04:08:36 AM
For MASM32 the include (.inc) files are in \masm32\include and the libraries (.lib) in \masm32\lib.

You could include them individually in your source with statements like:

include \masm32\include\kernel32.inc
includelib \masm32\lib\kernel32.lib

Or include all of the common ones with the single statement:

include \masm32\include\masm32rt.inc
Title: Re: Where do I find .libs & .incs?
Post by: dedndave on April 22, 2010, 01:36:39 PM
advapi32 is one of the libraries not listed in the masm32rt.inc file
if you need to use functions from advapi...
        INCLUDE    \masm32\include\masm32rt.inc
        INCLUDE    \masm32\include\advapi32.inc
        INCLUDELIB \masm32\lib\advapi32.lib