The difference in the static library.



  • Hello, I have a question about what's the headline file from the static library? If they have the same functions, then why do files .h include only headings and not functions/classes in total? Thank you.



  • lib is a binary file, it has a code already compiled. For example, standard libraries are not recompiled every time they compile a hill-worth. .h is a text file, it has a lib function, but it does not have a code of functions. The connection of file .h requires the compiler to know what the functions look like in .lib: what parameters they accept (and in what order) and what values are returned.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2