Home > Back-end >  How to find the corresponding c h file file
How to find the corresponding c h file file

Time:11-13

C language main function file contains an h header file, and call its statement function, but the main function is to pass what find its function entity? Is looking for h c file file name? If the function entity files and its h c header file a different file name whether other function can't call this function,

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
  • Related