The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: sittingduck on January 17, 2008, 07:35:23 PM

Title: \masm32\bin\lib does not do its job...
Post by: sittingduck on January 17, 2008, 07:35:23 PM
\masm32\bin\lib /OUT:libraryname.lib objectfile1.obj objectfile2.obj

no errors, and no 'libraryname.lib' file.
Nothing wrong with .obj files.

Any ideas?
Title: Re: \masm32\bin\lib does not do its job...
Post by: Tight_Coder_Ex on January 17, 2008, 10:35:59 PM
Your command line is correct, so the only think I can think of is that libraryname.lib is putting it somewhere you haven't anticipated.  Maybe use windows search to see if it exists at all.
Title: Re: \masm32\bin\lib does not do its job...
Post by: hutch-- on January 18, 2008, 12:54:35 AM
Probably getting the command line right will help.

here is the library build command line from the masm32 library.


\masm32\bin\link -lib *.obj /out:masm32.lib

Title: Re: \masm32\bin\lib does not do its job...
Post by: sittingduck on January 18, 2008, 09:59:12 AM
Thats right guys.

\masm32\bin\link -lib *.obj /out:masm32.lib

works like a charm.

\masm32\bin\lib /OUT:masm32.lib module1.obj module2.obj

works too but as you suggested the file was not placed in the current dir.