CodePudding user response:
It seems your separate compilation rules of C also don't know much about, don't go to each C file compile time function definition function entity (that is, you said), only the last link to produce an executable file, will find the definition of each function, where to find? Is to find the specified database, library and other C file, that which database to find, this is what you want to tell the compiler (accurate linker), if you use an IDE, it's probably not experience this process, the IDE help you write your C file to produce libraries are in the position, can be found if it is using GCC, then need to use parameter (- l - l) to specify the library name and path