Nguyễn Đôn Hào
New member
How do I create a header file in Linux?
Answer
12.16 – Creating and including header files in Linux
Answer
12.16 – Creating and including header files in Linux
- The main advantage with this is we no need to specify the path of header and library files with every program we compile. …
- $gcc –v main. …
- $gcc –o demo demo.c –lm. …
- $gedit arith.c. …
- $gedit logic.c. …
- $sudo gcc –c arith.c logic.c. …
- $sudo ar –crv libfox.a arith.o logic.o a- arith.o b- logic.o.