Created
March 1, 2020 21:35
-
-
Save davixcky/dc2b704e7430e1e8cee72b3c35b11e85 to your computer and use it in GitHub Desktop.
Commands for create the library and link to the main.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcc mylib.c | |
ar rcs libmylib.a *.o | |
gcc main.c -L. -lmylib -o message |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment