Jump to content

Visual C++ 2008 debug programs can't run


Josh
 Share

Recommended Posts

When I run a Visual Studio 2008 program build with debugging enabled on Windows 7 64-bit without Visual Studio 2008 installed, I get the following error:

"The application has failed to start because its side-by-side configuration is incorrect."

 

I tried installing the Visual Studio 2008 and Visual Studio 2008 SP1 redistributable packages for both x86 and x64, restarting between each, and it made no difference.

 

How the hell are you supposed to make a simple program run on Windows?

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Okay, you just have to go into project properties > C++ > Code Generation, and for "Runtime Library" you choose "Multi-threaded Debug (/MTd)" or "Multi-threaded (/MT)". The reason this did not work for me before is because I had a static library for FreeType that was using the DLL runtime library.

 

I have no idea why installing the Redistributable Package didn't work.

 

Is the same issue as when Visual Studio 2010 executables don't work without an additional package installed on Windows XP? Can it be worked around in the same manner using Visual Studio 2010 or 2012?

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

You can't run debug apps on other systems as it's using debug redistributable libraries. It will be only running on system with Visual studio installed ( with same toolset version ). If you need tu run it, just include toolset debug libraries with app. ( msvcXXXd.dll, etc ( 'd' in the end ) ) and it will work. You can see, different version of Visual studio is using different toolset version as libraries are newer. You can set one version everywhere, for example v100 and include debug libraries with debug exe.

-= Phenom II X4 965 3.4Ghz - ATI HD5870 - 6 GB DDR3 RAM - Windows 8 Pro 64x=-

Website: http://www.flamewarestudios.com

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...