X
X
xxx1233212018-08-15 19:12:55
C++ / C#
xxx123321, 2018-08-15 19:12:55

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? #include<stdio.h>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question