Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There are two kinds of libraries:</p> <ul> <li><p>Import libraries:<br> These libraries only list where to find references to variables/functions/etc., but they don't <em>contain</em> the code itself.</p></li> <li><p>"Normal" libraries (which contain object files that contain machine code):<br> These libraries contain object files, which contain the actual machine code.</p></li> </ul> <p>The libraries that ship with an operating system are generally import libraries.<br> The actual code, after all, is in the operating system itself; the import libraries merely tell you how to use the code provided in the operating system.<br> Why is this necessary? Because there is no way for a program to "discover" the libraries available on an operating system <em>while it is running</em>, so the program has to <em>know</em> what will be available <em>when it is compiled</em>. </p> <p>Those that come with a compiler are generally code libraries; they contain code that the compiler requires (which varies depending on your particular compiler) in order to comple your program.</p> <p>However, there is no single "standard format" for a library; Microsoft uses COFF, but *nix tools use ELF.<br> So when Microsoft ships the import libraries for a system, it only ships them in COFF format, which is great for the Visual C++ compiler -- but not so useful for other compilers. </p> <p>This causes compiler vendors such as MinGW to be forced to create their <em>own</em> import libraries for the operating systems which they intended to target -- the <em>purpose</em> of these libraries is exactly the same as as those provided by the operating system vendor (such as Microsoft), but their <em>format</em> is different.</p> <p>That's why you see seemingly similar libraries provided in multiple ways.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload