News:

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

[LINKING] How to include libraries?

Started by 2-Bit Chip, December 31, 2009, 02:53:35 AM

Previous topic - Next topic

2-Bit Chip

How do I include library files manually through LINK.exe?

\masm32\bin\LINK /MACHINE:IX86 /SUBSYSTEM:CONSOLE /LIBPATH:\masm32\lib /IMPLIB:kernel32.lib

The help files aren't helping. Does anyone know how to do this?

dedndave

i think you just put the name on the line - lol
if that doesn't work, try this
/DEFAULTLIB:library.lib

http://msdn.microsoft.com/en-us/library/aa270751(VS.60).aspx

hutch--

Just run you link line with the main object module first then the name of each library after it seperated by a space.

If you have many libraries use a response file.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

dedndave

of course, it is much easier to name the library in an INCLUDELIB directive in the asm file   :bg