Jump to content

[SOLVED] Visual Studio version conflict


photo

Recommended Posts

Reproduction Steps

If you have installed Visual Studio version 9.0 and 10.0, when you generate Unigine dll in 64 bits, the resulting file depends on MSVCR90.DLL instead of MSVCR100.DLL (most recent version).

This doesn't happen with 32 bits version.

 

Possible Fix

Modify  scons_x64.bat as follows:

 

...

set VCVARS=%VS110COMNTOOLS%..\..\VC\bin\x86_amd64\vcvarsx86_amd64.bat
if exist "%VCVARS%" (
call "%VCVARS%"
goto vs_ok
)
set VCVARS=%VS100COMNTOOLS%..\..\VC\bin\x86_amd64\vcvarsx86_amd64.bat
if exist "%VCVARS%" (
call "%VCVARS%"
goto vs_ok
)
set VCVARS=%VS90COMNTOOLS%..\..\VC\bin\x86_amd64\vcvarsx86_amd64.bat
if exist "%VCVARS%" (
call "%VCVARS%"
goto vs_ok
)
set SETENV=%WINSDK71_DIR%\bin\SetEnv.cmd
if exist "%SETENV%" (
call "%SETENV%" /x64
goto vs_ok
)
set SETENV=D:\Microsoft\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd
if exist "%SETENV%" (
call "%SETENV%" /x64
goto vs_ok
)

...

 

 

Link to comment
×
×
  • Create New...