Error with IntelPgk while using Visual Studio* integration

Problem :
After installing the Intel C++ Composer XE 2011 Update 5 the integration of Microsoft* Visual Studio 2010* or Visual Studio 2008* does not work anymore. There are different kind of error messages like the one below showing up:
error_msg.png

There are also errors indicating that the files IntelCppOptPkg.dll or IntelLibOptPkg.dll are missing.
It's not possible to use the Intel C++ compiler within Visual Studio.

Root Cause :
An older beta package was likely installed on the system. The beta package contains higher version number so when installing the newer product update with lower version number the installation could not cleanly uninstall the beta.  And at the end the IDE integration module contains a mismatched files.

Note: it is difficult to install an older product on top of a new project correctly.

Resolution :
Clean the IDE integration module manually with steps below:

  1. Uninstall the Intel C++ Composer XE 2011 update 5
  2. Uninstall the Intel C++ Composer beta
  3. Delete folder C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\intel
  4. Delete two files under C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies
    1. IntelCppOptPkg.dll
    2. IntelLibOptPkg.dll
  5. Delete folder C:\Program Files (x86)\Common Files\Intel\shared files\VS Integration
    1. Before remove above folder, need to uninstall the IDE integration of vs2008/2005
    2. Open "Visual Studio 2008 Command Prompt" using "Run as administrator", and go to "C:\Program Files (x86)\Common Files\Intel\shared files\VS Integration\C++\VS2008".
      1. integrate "[vs2008-root-dir]" /u
        • On a Windows 7 x64 system this would be:
          $ integrate "c:\Program Files (x86)\Microsoft Visual Studio 9.0" /u
      2. devenv /setup
  6. Reinstall Intel C++ Composer XE 2011 update 5
There is a batch file "cleanIDEintegration.bat.txt" attached that will do the step#3, #4, #5. Two notes below when using it:

 

  1. Make sure the directory for Visual Studio 2010 and 2008 match your directory;
  2. and also it needs to be run using "Run as administrator".

This issue is fixed in Intel C++ Composer XE 2011 Update 6 and later.

For more complete information about compiler optimizations, see our Optimization Notice.