Thread: making self contained executables?

  1. #16
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Are you using any extra DLLs, or just the standard C/C++ runtime?
    Static Libraries

    Borland C++ Builder
    Borland does not really encourage us to do this. Obviously they just could not imagine anyboudy would like to do something as obscure as a static library? Therefore there is no tool for this included in the integrated development environment.

    If somebody absolutely insists on producing static libraries anyway will have to live with the command line utilities in the Commandline Window. For creating static libraries there is the the program tlib.exe, which I am not going to go in further detail about. Call syntax and possible options are documented in the online documentation to the C++ Builder.

    For those who have to live with this piece of software I only recommend creating a dynamic library instead. That has some glitches, too, but will in the long run be much less annoying.
    From http://herbert.the-little-red-haired...ows/index.html

    Useless food for thought: http://www.ddj.com/windows/184416443
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  2. #17
    3735928559
    Join Date
    Mar 2008
    Location
    RTP
    Posts
    838
    Quote Originally Posted by dwks View Post
    Are you using any extra DLLs, or just the standard C/C++ runtime?

    From http://herbert.the-little-red-haired...ows/index.html

    Useless food for thought: http://www.ddj.com/windows/184416443
    this link is actually incorrect.

    i got my boss to cough up the $ to sign up at experts exchange.

    you just have to uncheck 2 runtime build options and you're off!

  3. #18
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Mm'kay, care to tell us what those two build options are?
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  4. #19
    3735928559
    Join Date
    Mar 2008
    Location
    RTP
    Posts
    838
    depends on your version. they're both under project->options

    in 6, you must uncheck both packages->"build with runtime packages" and linker->"use dynamic RTL"

    the first one is the same for BCB2k6, but the second one is something about "release build" or some such. i dont' remember that one offhand.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Small executables in VC++ 8
    By Bleech in forum Windows Programming
    Replies: 3
    Last Post: 06-20-2007, 08:28 AM
  2. Making control...
    By Finchie_88 in forum C++ Programming
    Replies: 2
    Last Post: 09-07-2004, 01:42 PM
  3. Replies: 2
    Last Post: 01-13-2003, 01:28 PM
  4. STL + MSVC++ = big executables ?
    By teneniel in forum C++ Programming
    Replies: 6
    Last Post: 11-04-2002, 02:12 PM
  5. Making executables slim.
    By marsface in forum Windows Programming
    Replies: 15
    Last Post: 12-30-2001, 10:08 AM