/c (Compile Without Linking)
Prevents the automatic call to LINK.
Syntax
/c
Remarks
Compiling with /c creates .obj files only. You must call LINK explicitly with the proper files and options to perform the linking phase of the build.
Any internal project created in the development environment uses the /c option by default.
To set this compiler option in the Visual Studio development environment
- This option is not available from within the development environment.
To set this compiler option programmatically
- To set this compiler option programmatically, see CompileOnly.
Example
The following command line creates the object files FIRST.obj and SECOND.obj. THIRD.obj is ignored.
CL /c FIRST.C SECOND.C THIRD.OBJ
To create an executable file, you must invoke LINK:
LINK firsti.obj second.obj third.obj /OUT:filename.exe
See also
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho