What do you mean by "non-source library"? |
There are libraries where you have sources and can just add them to your project, like any other header/implementation file and compile them yourself.
And there are libraries which provide you a header, which acts like an interface providing declarations of entities you may use and prebuilt binary (either a dynamic - dll - library, which you must load in runtime, or static, which you must link to program). As it is built already, it is in machine code already, not C, C++, Delphi, etc.
In practice C function interface used as almost all languages support it directly or indirectly. There exist some libraries which exposes C++ style classes for use only with C++.
And you're saying you could use code from another language (like Python) in your c++ solution, if it's packaged into library? |
Pyton is not a compiled language, so you cannot make a binary out of it directly. However you can interact with Pyton code by use of some medium.
does that source code for (for example) std::cout get inserted by VS2015 (behind the scenes, while i'm writing the program), or by the compiler at compile time? |
Implementation code for standard library entities resides in C++ runtime library. It might be linked to your program statically (like any other cpp file, but it is compiled already for you, only linking stage remain) or dynamically (Ever saw errors like "VCredist XXXX needed"? This is a C++ runtime library where cout implementation code resides).
Including required parts of runtime library is a compiler magic. You are not supposed to worry how it works and interfere with it (sometimes you are allowed to make small changes like choosing dynamic or static linking)