Thread: Visual C++ Redistributable Package Is Too Time Consuming

  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    2

    Question Visual C++ Redistributable Package Is Too Time Consuming

    How can I determine for a given application which parts of it are relying on the visual c++ redistributable package? I think in most of my applications its just the c++ standard library. Can I avoid those dependencies by using visual c++ intrinsics instead? The Application I want to redistribute is really small and the installation of the VC++ redist package is just too time consuming. So is there a way to get rid of the VC++ redist package?

    Hope someone can help.

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    You cannot get rid of the redist package unless you go "pure" Win32.
    And that means no C++ library functions, no C library functions.

    However, there is a way to link the code from the libraries directly into your executable. It's called static linking, and should probably fit your purposes.
    I forget the actual name of the setting, however.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Registered User
    Join Date
    Jan 2010
    Posts
    412
    Quote Originally Posted by Elysia View Post
    However, there is a way to link the code from the libraries directly into your executable. It's called static linking, and should probably fit your purposes.
    I forget the actual name of the setting, however.
    It's Project properties -> C/C++ -> Code Generation -> Runtime Library in VS2010, but iirc it's called the same in all VS versions.

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    No, it isn't. Microsoft changed that in some version.
    It's the right place, but I don't know which option it is.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    Registered User
    Join Date
    Jan 2010
    Posts
    412
    Okey maybe I shouldn't have said all versions
    But it's been the same options since 6.0 at least. That was the earliest version I could find documentation for.
    /MD, /ML, /MT, /LD (Use Run-Time Library) VS6.0
    /MD, /ML, /MT, /LD (Use Run-Time Library) (C++) VS2003 to 2010
    The only thing that's changed is that 2003 was the last version to have the single-threaded option.

  6. #6
    Registered User
    Join Date
    Jun 2011
    Posts
    2
    Thanks a lot! These replies really helped.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Visual Studio Just-In-Time Debugger Error
    By JudgeFudge in forum C++ Programming
    Replies: 1
    Last Post: 11-10-2010, 10:38 AM
  2. prime numbers and time consuming
    By Gustaff in forum C Programming
    Replies: 21
    Last Post: 08-30-2010, 01:29 PM
  3. Just-In-Time Debugger (Visual Studio 2005)
    By Darklighter in forum Tech Board
    Replies: 2
    Last Post: 10-10-2006, 01:43 PM
  4. Consuming same Web Service multiple times
    By cfriend in forum C# Programming
    Replies: 2
    Last Post: 01-10-2006, 09:59 AM
  5. Visual C++ 2005 Express: Run Time Library
    By Rune Hunter in forum C++ Programming
    Replies: 4
    Last Post: 11-13-2005, 06:47 PM