Re: What's static link at runtime?

From: Phlip (phlip_cpp_at_yahoo.com)
Date: 10/20/04


Date: Tue, 19 Oct 2004 23:36:03 GMT

BekTek wrote:

> When I build boost libs,
> I realized that there is static link at runtime..
>
> What does that mean?
>
> I thought static linking is done at compile time.
> Am I wrong?

<warning value="platform specific">
   Uh, all platforms I know support this feature,
   but C++ itself does not define it, so YMMV.

   You can build a library to link statically, as a LIB,
   or dynamically, as DLL. The former links at link
   time, and the latter links after you double-click on
   an executable but before any of the executable's
   opcodes evaluate.
</warning>

Many libraries provide both LIBs and DLLs, so the end-programmer can pick if
they want executables that are easy to install or small, respectively.
However <deep breath> The C++ Standard does not define LIBs or DLLs (or .a
and .so files), so future discussions about them belong on any newsgroup
except this one.

-- 
  Phlip
  http://industrialxp.org/community/bin/view/Main/TestFirstUserInterfaces


Relevant Pages

  • Re: How to deploy private Assemblies with VC2005 SP1
    ... Holger was right....recompiling all the third party libs and dlls solved the ... After that i can ship the CRT and the manifest with my app in the ... Of course i use the new installed SP1 ...
    (microsoft.public.dotnet.languages.vc)
  • Re: clamd keeps exiting
    ... >> Maybe the program is linked to some libs during compile time, ... Michael D. Whities ... To unsubscribe, ...
    (freebsd-questions)
  • Re: Dumb Windows linking question.
    ... no mater how you respond to an idiot, he will still act like an idiot. ... >>comes with the compilers, and as I already said I included it. ... any combination libs and dlls. ...
    (comp.programming)
  • Re: gcc 3 versions: calling conventions
    ... No of course not, but at compile time. ... an import lib to add the underscores to the old code. ... What about the possibility of creating DLLs from the old libs? ...
    (comp.os.os2.programmer.tools)
  • Re: clamd keeps exiting
    ... >> Maybe the program is linked to some libs during compile time, ... Recursion level limit set to 5. ... I have no clue why it keeps exiting. ...
    (freebsd-questions)