Minor corrections
This commit is contained in:
parent
287c98d8ff
commit
be2eaeff9a
4
howto.md
4
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`
|
||||
|
|
|
|||
Loading…
Reference in a new issue