|
From: bzaid on 28 May 2008 06:08 Hi, I use Visual C++ 2005 to develop Win32 application. The output exe file requires the C/C++ Runtime Library DLLs. Starting with Visual C++ 2005, C++ applications require redistribution of Visual C++ 2005 Redistributable Package i.e. it's not possible to run your program without installing Visual C++ 2005 Redistributable Package. Distributing the DLL with the application won't work. Question: Is there a way to make C++ programs statically link with the CRT so I don't have to install Visual C++ 2005 Redistributable Package? Thanks
From: Giovanni Dicanio on 28 May 2008 06:24 "bzaid" <bahaazaid(a)yahoo.com> ha scritto nel messaggio news:51021DFF-721A-40BC-B6F1-73397D024A71(a)microsoft.com... > Is there a way to make C++ programs statically link with the CRT so I > don't have to install Visual C++ 2005 Redistributable Package? To statically link with CRT, select Properties, then: C/C++ | Code Generation | Runtime Library: and select: Multi-threaded (/MT) HTH, Giovanni
From: bzaid on 28 May 2008 07:10 Thanks a lot, it worked great. "Giovanni Dicanio" <giovanni.dicanio(a)invalid.com> wrote in message news:#VmoP1KwIHA.5096(a)TK2MSFTNGP02.phx.gbl... > > "bzaid" <bahaazaid(a)yahoo.com> ha scritto nel messaggio > news:51021DFF-721A-40BC-B6F1-73397D024A71(a)microsoft.com... > >> Is there a way to make C++ programs statically link with the CRT so I >> don't have to install Visual C++ 2005 Redistributable Package? > > To statically link with CRT, select Properties, then: > > C/C++ | Code Generation | Runtime Library: > > and select: > > Multi-threaded (/MT) > > > HTH, > Giovanni > >
From: adebaene on 28 May 2008 08:30 On 28 mai, 12:08, "bzaid" <bahaaz...(a)yahoo.com> wrote: > Hi, > > Starting with Visual C++ 2005, C++ applications require redistribution of > Visual C++ 2005 Redistributable Package i.e. it's not possible to run your > program without installing Visual C++ 2005 Redistributable Package. > Distributing the DLL with the application won't work. That's wrong. You can distribute the CRT Dlls "by hand" : Put them, along with their manifest, in the same directory as the exe. You can find the necessary files in <VSInstallDir>\VC\redist \x86\Microsoft.VC80.CRT. Aranud
From: bzaid on 28 May 2008 10:17
That works too. Thanks a lot. <adebaene(a)club-internet.fr> wrote in message news:9237d199-821e-437f-88ba-35ea4f5576d6(a)f36g2000hsa.googlegroups.com... > On 28 mai, 12:08, "bzaid" <bahaaz...(a)yahoo.com> wrote: >> Hi, >> >> Starting with Visual C++ 2005, C++ applications require redistribution of >> Visual C++ 2005 Redistributable Package i.e. it's not possible to run >> your >> program without installing Visual C++ 2005 Redistributable Package. >> Distributing the DLL with the application won't work. > > That's wrong. You can distribute the CRT Dlls "by hand" : Put them, > along with their manifest, in the same directory as the exe. You can > find the necessary files in <VSInstallDir>\VC\redist > \x86\Microsoft.VC80.CRT. > > Aranud |