# LIB2DLL: Creating DLLs from static Libraries

>> Example: \rsxnt\source\crtrsxnt

LIB2DLL creates a DLL from a static library. The goal is to create a DLL with exprted functions that are defined in a Module Definition file (DEF). Lib2Dll calls the GCC compiler to build the DLL. Then you can use makelib to build the import library.

syntax:

      LIB2DLL MODULE.DEF [GCC OPTIONS]

example:

      LIB2DLL mylib.def -Zmt -Zcrtdll=crtrsxnt -lmylib