Minor corrections

This commit is contained in:
Filip 2024-12-23 00:27:31 +01:00
parent 287c98d8ff
commit be2eaeff9a

View file

@ -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`