次の方法で共有


/Fo   (Name Object File)

OverviewHow Do ICompiler Options

The /Fofilename option names an .OBJ file or creates it in a different directory. No space is allowed between /Fo and filename. By default, CL names the object file with the base name of the source file plus the extension .OBJ. You can give any name and extension you want for filename. However, it is recommended that you use the conventional .OBJ extension.

Example

The following command line compiles the source file THIS.C and gives the resulting object file the name THIS.OBJ by default. The directory specification B:\OBJECT\ tells CL to create THIS.OBJ in an existing directory named \OBJECT on drive B.

CL /FoB:\OBJECT\ THIS.C