[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]


C.3 Linking DECthreads Applications

Applications using C Run-Time Library functions should be linked against one of the C Run-Time Libraries that support multithreaded applications-either LIBCMT.LIB, CRTDLL.LIB or MSVCRT.LIB (depending on the compiler version being used.) For example:

%  CL /link myprog.obj CRTDLL.LIB

LIBCMT.LIB is a statically linked library that supports multithreading. CRTDLL.LIB is an export library for CRTDLL.DLL, a dynamically linked library that also supports multithreading. Multithreaded applications should not link against LIBC.LIB because it does not support multithreaded applications.