Answer the question
In order to leave comments, you need to log in
How does a header file point to a library?
I started to get acquainted with make and asked myself this question.
For example, there is a connected header:
In it, as I understand it, there are function prototypes, and the functions themselves are compiled into object files and compiled into a library, for example ".a".
The linker sees the header line and goes to /usr/lib .
But how does he see the right library? Goes through everything?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question