I have two questions
First off,
When you include a header file in your program, does the compiler then link the program to the library that it intails? Or are the libraries always linked? I´d assume that they´re only linked when the header is included, but how does that work?
Secondly,
Recently, I wrote a program as a test that was composed to two cpp files. I then wrote two functions that were *exactly* the same and put on into each file. I then prototyped the one function in the first file (the on with main() in it) and made a call to it in main(). I assumed that I would get some sort of error, ambiguity or such, but no such error occurred, and the program simply called the function in the first file. Why?
thanks very very much for the help!



LinkBack URL
About LinkBacks




