What is the difference between - 1) Preprocessor,linker, 2)Header file,library? Is my understanding correct?

前端 未结 3 1329
悲&欢浪女
悲&欢浪女 2020-12-13 05:20

Okay, until this morning I was thoroughly confused between these terms. I guess I have got the difference, hopefully.

Firstly, the confusion was that since the prepr

3条回答
  •  离开以前
    2020-12-13 06:13

    Yes, almost correct. Except that the linker does not links object files, but also libraries - in thise case, it's the C standard library (libc) is what is linked to your object file. The rest of your assumptions appear to be true about the compilation stages + difference between a header and a library.

提交回复
热议问题