This is probably a really stupid question with a really simple answer, but how do you make a static library in assembly? I wanted to make static libraries in assembly and use them in Visual C++.
Take a look at this,
http://www.masm32.com/board/index.php?topic=14078.0
That link pretty confusing clive, he's a more straightforward approach
;yourlib.asm
include \masm32\include\masm32rt.inc
myfunction proto C :DWORD
.code
myfunction proc C param1:DWORD
;do whatever
ret
myfunction endp
end
;build.bat
\MASM32\BIN\ML /c /coff yourlib.asm
\MASM32\BIN\link -lib /LIBPATH:\masm32\lib yourlib.obj
pause
;test.c
#include <stdio.h>
#pragma comment(lib, "yourlib.lib");
int main()
{
myfunction(1);
}