What is a library I think it is just a bunch of code but I can not be sure and what does a linker do exactly I think it connects libraries to your program but does it link every C++ library and how come it does this after compiling does it not turn the libraries into machine code and if it doesn't does that not make C++ an interpreter or like an engine I just don't get it. Please Help Thank You!
I already got on your case about this in another thread, but for the love of God, break your posts into comprehesible sentences. Separate topics into paragraphs. Remember 1st grade English class.
What is a library I think it is just a bunch of code
Correct.
what does a linker do exactly
Building C++ programs is a two step process:
The compiler only compiles a single source file into an intermediate code (not really an actual binary). It is incomplete because it might be calling functions that have not been compiled (because they exist in another source file, or because they exist in a separate lib).
The linker ties all of the source files in a program together, along with any libs you want to use, and produces a complete binary.
does it not turn the libraries into machine code and if it doesn't does that not make C++ an interpreter or like an engine
I don't see how you're making that connection. Interpretted languages are read and translated at runtime. Binaries produced by C++ linkers are in the machine's native assembly. No runtime interpretation required.