Microsoft KB Archive/32448

= INFO: Specifying .DEF Files on the CL Command Line =

Article ID: 32448

Article Last Modified on 7/5/2005

-

APPLIES TO


 * Microsoft Visual C++ 1.0 Professional Edition
 * Microsoft Visual C++ 1.5 Professional Edition
 * Microsoft Visual C++ 1.0 Professional Edition
 * Microsoft Visual C++ 2.0 Professional Edition
 * Microsoft Visual C++ 4.0 Standard Edition
 * Microsoft Visual C++ 5.0 Standard Edition
 * Microsoft Visual C++ 6.0 Service Pack 5

-



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

Additional query words: 8.00 8.00c 9.00

Keywords: kbinfo kbcompiler KB32448

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.