Lateral Madness - running binary files on one computer

Here is my configuration:

  • Computer A - Windows 7, MS Visual Studio 2005, fixed for compatibility with Win7 (8.0.50727.867)
  • Computer B - Windows XP Service Pack 2 (SP2), MS Visual Studio 2005 (8.0.50727.42)

My project has several external dependencies (pre-built DLLs - either built on A or downloaded from the Internet), several DLLs built from sources and one executable file. I basically develops on A , and everything is fine. At some point, I try to create my project on computer B by copying the pre-created DLLs to the output folder. Everything builds fine, but trying to run my application, I get

The application failed to initialize correctly (0xc0150002) ....

The event log contains two of them:

The dependent assembly Microsoft.VC80.CRT was not found and the last error was The linked assembly was not installed on your system.

plus a little funnier

some.dll. : .

Google-Fu, - - Visual Studio. , , .

, , - DLL , , MSVCR80.DLL MSVCP80.DLL, DLL , , MSVC?80.DLL, DLL, , . , , , , stackoverflow:)

, , .

+3
4

: A VC 8.0.50727.867, B 8.0.50727.42.

A, 867 VC. ( , .) B, - 867 , 42.

VC VC runtime 867 B. Visual Studio B, . , Visual Studio 2005 SP1 , 1 (SP1). 8.0.50727.4053.

+3

, CRT, . CRT, ?

+1

, DLL, ,

0

, . , , . , MSVC DLL/EXE, , , .

, , , .

You need to make sure that each module that you create together uses the same configuration, debugging or freeing the entire assembly chain. This error probably also occurs with inconsistencies in other libraries, so make sure your MSVC is the same version on the machines you build on.

0
source

Source: https://habr.com/ru/post/1783088/


All Articles