>> 1. How does it know which files depend on which other files?
>
> If you write an #include line, you create a dependency to that file.
> It's that simple.
True. But presumably if you #include a file that defines a function
prototype, you also need to compile and link whatever file it is that
contains the source code for that function? (Except for the OS header
files; I have literally *no clue* how that works...)
> In C and C++ there's no difference between source files and header files.
> They are just files containing code.
> A header file doesn't really determine what is "public" and what isn't.
> It's just a convenience technique. It's easier to put declarations in a
> common file and then simply #include that file than to have to write the
> declarations in all source files which need them.
True... But I'm still wondering how VS does this in the absence of
header files.
Post a reply to this message
|