My question is regarding preprocessor and linking phase confusion in compilers (typically c++ compilers).
From the online sources, its said that the compiler doesnt look at other source codes until the linking phase. But during the preprocessor phase of compiler, its said that all the include statements are replaced with their respective source code. Isnt other source files accessed during this phase then?
Also, its said during linking phase, the functions of libs are linked. But all functions used in the code from libs are in the include statement and hence are already in the source code itself...right?
Please let me know what I am missing.