Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

Using the Intel® C++ Compiler (VS 2008)

$
0
0

The following applies to C++ for Microsoft Visual Studio* 2008.

Using the Intel® C++ Compiler within the Visual Studio* IDE

  1. Create a Visual C++* project, or open your existing project.

  2. In the Solution Explorer, select the project or projects to build with Intel® C++ Compiler.

  3. Click the Use Intel C++ toolbar button, shown here:


  4. Add options -- Open the Project property page. You can add compiler options to the Additional Options field of the Command Line property, or select the options from Intel Specific fields. Refer to complete list of options in the Compiler Options section of this documentation.

  5. Rebuild, using either Build> Project only> Rebuild for a single project or Build> Rebuild Solution for the solution.

Verify Use of the Intel® C++ Compiler

After rebuilding your application, go to the Output window. If the Intel® C++ Compiler is used, you should a message similar to the following:

Compiling with Intel(R) C++...(Intel C++ Environment)

Unsupported Visual C++* Project Types

The following project types are not supported:

  • Empty Project (.NET)

  • Class Library (.NET)

  • Console Application (.NET)

  • Windows* Control Library (.NET)

  • Windows* Forms Application (.NET)

  • Windows* Service (.NET)

Unsupported Library Types in Visual Studio* 2008

Static, single-thread libraries are not available in Visual Studio* 2008.

In these versions of Visual Studio*, the static, single-thread Visual C++* libraries libc.lib and libcd.lib have been removed. If you specify that the Intel® C++ Compiler should use Visual Studio* 2008 for command-line building and you attempt to build an application with the static, single-thread library (which was the default in earlier versions), you will get a warning that the ML option is not supported.

If you attempt to link such an application you will get an error from the linker that libc.lib or libcd.lib is not found.

To resolve this, use the threaded and/or DLL forms of the run-time libraries which are specified using either MT, which is the default, or MD options.

This issue may also affect projects which are built from the Microsoft Visual Studio* IDE. In this case, change the project property C/C++> Code Generation> Runtime Library to the desired new value.

Tips for Ease of Use

  • Create a separate configuration for building with Intel® C++ Compiler.

    • After you have created your project and specified it as an Intel® C++ project, create a new configuration (e.g. "rel_intelc" based on "Release" configuration or "debug_intelc" based on "Debug" configuration).

    • Add any special optimization options offered by Intel® C++ Compiler only to this new configuration (e.g. "rel_intelc" or "debug_intelc") through the project property page.

  • Build with Intel® C++ Compiler.

Inglés

Viewing all articles
Browse latest Browse all 1616

Trending Articles