INFO: Specifying .DEF Files on the CL Command Line (32448)
The information in this article applies to:
- Microsoft Visual C++ for Windows, 16-bit edition 1.0
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++, 32-bit Editions 1.0
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 5.0
- Microsoft Visual C++, 32-bit Editions 6.0
This article was previously published under Q32448 SUMMARY
The Microsoft C and C/C++ compiler command lines can include files
with the .DEF, .LIB, and .OBJ filename extensions.
If you specify one or more of these files on the command line, the CL
driver passes them appropriately as arguments to LINK.EXE. If the name
of a file does not have an extension, CL treats it as a .OBJ file and
appropriately passes it to the linker.
The following command line builds an application called MYAPP.EXE by
compiling MYAPP.C into MYAPP.OBJ, then linking MYAPP.OBJ and MYSUB.OBJ with
the MYLIB.LIB library and the MYDEF.DEF module definition file:
cl myapp.c mysub mylib.lib mydef.def
Modification Type: | Minor | Last Reviewed: | 7/5/2005 |
---|
Keywords: | kbCompiler kbinfo KB32448 kbAudDeveloper |
---|
|