How do I create a header file in Linux?

How do I create a header file in Linux?
Answer
12.16 – Creating and including header files in Linux
  1. The main advantage with this is we no need to specify the path of header and library files with every program we compile. …
  2. $gcc –v main. …
  3. $gcc –o demo demo.c –lm. …
  4. $gedit arith.c. …
  5. $gedit logic.c. …
  6. $sudo gcc –c arith.c logic.c. …
  7. $sudo ar –crv libfox.a arith.o logic.o a- arith.o b- logic.o.
29 дек. 2013 г.
 

Tìm kiếm

Back
Top