How do I link assembly with the C library with MSVC++ linker?
I found a simple assembly tutorial online that uses some C functions. I've already used NASM to generate a .obj file but I'm having trouble linking against the C library from the command line.开发者_StackOverflow中文版 How do I do this with link.exe?
I'm using Visual C++ 2010 Express.
Thanks for the help.
Specify one of the run-time library options: /MD
(multithreaded DLL run-time) or /MT
(multithreaded static run-time).
In debug builds, specify /MDd
or /MTd
respectively.
精彩评论