📄 node65.htm
字号:
<HTML>
<HEAD>
<!-- This file was generated by tohtml from mpichntman.tex -->
<!-- with the command
tohtml -default -dosnl -gaudy -basedef mpiman.def mpichntman.tex
-->
<TITLE>MSDEV Project settings</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<HR><H1><A NAME="Node65">MSDEV Project settings</a></H1>
<A HREF="node64.htm#Node64"><IMG WIDTH=16 HEIGHT=16 SRC="previous.xbm"></A><A HREF="mpichntman.htm#Node0"><IMG WIDTH=16 HEIGHT=16 SRC="up.xbm"></A><A HREF="node66.htm#Node66"><IMG WIDTH=16 HEIGHT=16 SRC="next.xbm"></A><BR>
<b>Up: </b><A HREF="mpichntman.htm#Node0">Contents</a>
<b>Next: </b><A HREF="node66.htm#Node66"> Bibliography</a>
<b>Previous: </b><A HREF="node64.htm#Node64"> Distribution files</a>
<P>
Here are the steps to creating a new mpich.nt project with MS Developer Studio 6
after you have installed mpich.nt:
<P>
<ol>
1. Open MS Developer Studio - Visual C++
<BR>
2. Create a new project with whatever name you want in whatever directory you want.
The easiest one is a Win32 console application with no files in it.
See figure <a href="node65.htm#Figure5">5
</a>
<CENTER><P><IMG WIDTH=602 HEIGHT=430 SRC="new_project.gif"><P>
</CENTER>
<BR>
<b>Figure 5: </b><A NAME="Figure5">New project</a><P>
<BR>
3. Finish the new project wizard.
<BR>
4. Go to Project-<I>></I>Settings or hit Alt F7 to bring up the project settings dialog box.
<BR>
5. Change the settings to use the multithreaded libraries.<BR>
Change the settings for both Debug and Release targets. See figure <a href="node65.htm#Figure6">6
</a>
<CENTER><P><IMG WIDTH=602 HEIGHT=775 SRC="flags.gif"><P>
</CENTER>
<BR>
<b>Figure 6: </b><A NAME="Figure6">Compiler flags</a><P>
<BR>
6. Set the include path for all target configurations: This should be <BR>
Program Files<IMG WIDTH=5 HEIGHT=11 SRC="img81.xbm">
MPICH<IMG WIDTH=5 HEIGHT=11 SRC="img82.xbm">
SDK<IMG WIDTH=5 HEIGHT=11 SRC="img83.xbm">
include.
See figure <a href="node65.htm#Figure7">7
</a>
<CENTER><P><IMG WIDTH=619 HEIGHT=399 SRC="include_path.gif"><P>
</CENTER>
<BR>
<b>Figure 7: </b><A NAME="Figure7">Include path</a><P>
<BR>
7. Set the lib path for all target configurations: This should be <BR>
Program Files<IMG WIDTH=5 HEIGHT=11 SRC="img84.xbm">
MPICH<IMG WIDTH=5 HEIGHT=11 SRC="img85.xbm">
SDK<IMG WIDTH=5 HEIGHT=11 SRC="img86.xbm">
lib.
See figure <a href="node65.htm#Figure8">8
</a>
<CENTER><P><IMG WIDTH=619 HEIGHT=399 SRC="lib_path.gif"><P>
</CENTER>
<BR>
<b>Figure 8: </b><A NAME="Figure8">Library path</a><P>
<BR>
8. Add the ws2_32.lib library to all configurations
(This is the Microsoft Winsock2 library. It's in your default library path).
Add mpich.lib to the release target and mpichd.lib to the debug target.
See figure <a href="node65.htm#Figure9">9
</a>
<CENTER><P><IMG WIDTH=602 HEIGHT=775 SRC="libs.gif"><P>
</CENTER>
<BR>
<b>Figure 9: </b><A NAME="Figure9">Libraries</a><P>
<BR>
9. Close the project settings dialog box.
<BR>
10. Add your source files to the project. See figure <a href="node65.htm#Figure10">10
</a>
<CENTER><P><IMG WIDTH=485 HEIGHT=262 SRC="add_files.gif"><P>
</CENTER>
<BR>
<b>Figure 10: </b><A NAME="Figure10">Add source files</a><P>
<BR>
11. Build
</ol>
<P>
<HR>
<A HREF="node64.htm#Node64"><IMG WIDTH=16 HEIGHT=16 SRC="previous.xbm"></A><A HREF="mpichntman.htm#Node0"><IMG WIDTH=16 HEIGHT=16 SRC="up.xbm"></A><A HREF="node66.htm#Node66"><IMG WIDTH=16 HEIGHT=16 SRC="next.xbm"></A><BR>
<b>Up: </b><A HREF="mpichntman.htm#Node0">Contents</a>
<b>Next: </b><A HREF="node66.htm#Node66"> Bibliography</a>
<b>Previous: </b><A HREF="node64.htm#Node64"> Distribution files</a>
<P>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -