diff --git a/howto.md b/howto.md index 7b180e5..c0f7145 100644 --- a/howto.md +++ b/howto.md @@ -10,7 +10,7 @@ void example(void); #endif ``` -Do this for each file. In this example `another-example.c`, `third-example.c`. +Do this for each file. In this example `another-example.h`, `third-example.h`. 2. Create implementation / definition of that function: @@ -22,6 +22,8 @@ void example(void); } ``` +Do this for each file. In this example `another-example.c`, `third-example.c`. + 3. Compile to object file: `clang -c example.c another-example.c third-example.c`. You can also do `clang -c *.c`. To create archive (static library): `llvm-ar r outputname.a example.c another-example.c third-example.c`