1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- saved from url=(0014)about:internet -->
<html xmlns:MSHelp="http://www.microsoft.com/MSHelp/" lang="en-us" xml:lang="en-us"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="Microsoft Visual Studio* Code Examples">
<meta name="DC.subject" content="Microsoft Visual Studio* Code Examples">
<meta name="keywords" content="Microsoft Visual Studio* Code Examples">
<meta name="DC.Relation" scheme="URI" content="../tbb_userguide/Windows_OS.htm">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="tutorial_Microsoft_Visual_Studio_Code_Examples">
<link rel="stylesheet" type="text/css" href="../intel_css_styles.css">
<title>Microsoft Visual Studio* Code Examples</title>
<xml>
<MSHelp:Attr Name="DocSet" Value="Intel"></MSHelp:Attr>
<MSHelp:Attr Name="Locale" Value="kbEnglish"></MSHelp:Attr>
<MSHelp:Attr Name="TopicType" Value="kbReference"></MSHelp:Attr>
</xml>
</head>
<body id="tutorial_Microsoft_Visual_Studio_Code_Examples">
<!-- ==============(Start:NavScript)================= -->
<script src="..\NavScript.js" language="JavaScript1.2" type="text/javascript"></script>
<script language="JavaScript1.2" type="text/javascript">WriteNavLink(1);</script>
<!-- ==============(End:NavScript)================= -->
<a name="tutorial_Microsoft_Visual_Studio_Code_Examples"><!-- --></a>
<h1 class="topictitle1">Microsoft Visual Studio* Code Examples</h1>
<div>
<p>The solution files in the package are for Microsoft Visual Studio* 2005.
Later versions of Microsoft* Visual Studio can convert them. Each example has
two solution files, one for the Microsoft compiler (*<samp class="codeph">_cl.sln</samp>)
and one for the Intel compiler (*<samp class="codeph">_icl.sln</samp>).
</p>
<p>To run one of the solution files in
<samp class="codeph">examples\*\*\msvs\.</samp>:
</p>
<ol>
<li>
<p>Start Microsoft Visual Studio*.
</p>
</li>
<li>
<p>Open a solution file in the
<samp class="codeph">msvs</samp> directory.
</p>
</li>
<li>
<p>In Microsoft Visual Studio*, press
<strong>Ctrl-F5</strong> to compile and run the example. Use
<strong>Ctrl-F5</strong>, not
<strong>Shift-F5</strong>, so that you can inspect the console window after the
example finishes.
</p>
</li>
</ol>
<p>The Microsoft Visual Studio* solution files for the examples require
that an environment variable specify where the library is installed. The
installer sets this variable.
</p>
<p>The makefiles for the examples require that
<samp class="codeph">INCLUDE</samp>,
<samp class="codeph">LIB</samp>, and
<samp class="codeph">PATH</samp> variables are set as indicated in the Windows* OS
topic. You can set these variables in the following way:
</p>
<p>
<ul type="disc">
<li>Go to
<samp class="codeph"><<em>install_dir</em>>\bin\</samp> directory and run the
batch file
<samp class="codeph">tbbvars.bat</samp>.
</li>
</ul>
</p>
</div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="../tbb_userguide/Windows_OS.htm">Windows* OS</a></div>
</div>
<div></div>
</body>
</html>
|