Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ヘッダー (.h) と ac (.c) ファイルがあります。cl.exe でそれらを使用してオブジェクト .obj ファイルを作成するにはどうすればよいですか?
cl /Wall /Fo foo.obj foo.c
説明:
/Wallより多くの警告を有効にします。あなたはこれを求めている!
/Wall
/Fo foo.obj foo.obj という名前のオブジェクト ファイルを作成します
/Fo foo.obj
foo.c これが入力 C ファイルです。ちがいない#include "yourHeaderFile.h"
foo.c
#include "yourHeaderFile.h"