⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node9.htm

📁 空间物理学研究需要有并行的环境
💻 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>Compiling and linking with Microsoft Developer Studio (VC++ 6.x)</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<HR><H2><A NAME="Node9">Compiling and linking with Microsoft Developer Studio (VC++ 6.x)</a></H2>
<A HREF="node8.htm#Node8"><IMG WIDTH=16 HEIGHT=16 SRC="previous.xbm"></A><A HREF="node8.htm#Node8"><IMG WIDTH=16 HEIGHT=16 SRC="up.xbm"></A><A HREF="node10.htm#Node10"><IMG WIDTH=16 HEIGHT=16 SRC="next.xbm"></A><BR>
<b>Up: </b><A HREF="node8.htm#Node8"> Programming Tips</a>
<b>Next: </b><A HREF="node10.htm#Node10"> Compiling with VC++ from the command line</a>
<b>Previous: </b><A HREF="node8.htm#Node8"> Programming Tips</a>
<P>
  
<P> 
<ol> 
 
1. Create a new project.  
 
<BR> 
2. Add <tt> MPICH<IMG WIDTH=5 HEIGHT=11 SRC="img22.xbm">
SDK<IMG WIDTH=5 HEIGHT=11 SRC="img23.xbm">
include</tt> to the include path.  
 
<BR> 
3. Add <tt> MPICH<IMG WIDTH=5 HEIGHT=11 SRC="img24.xbm">
SDK<IMG WIDTH=5 HEIGHT=11 SRC="img25.xbm">
lib</tt> to the library path.  
 
<BR> 
4. Add the /MTd compiler switch to the Debug target and /MT to the Release target.  
 
<BR> 
5. Add <tt> ws2_32.lib</tt> to the library option.    
Add <tt> mpich.lib</tt> to the Release target and <tt> mpichd.lib</tt> to the Debug target.  
 
<BR> 
6. Add your source files.  
 
<BR> 
7. Build.  
 
<BR> 
8. Copy the executable and use <tt> mpirun</tt> to run the application.  
</ol> 
A graphical illustration of where to make the compiler settings can be found in   
Appendix <a href="node65.htm#Node65">MSDEV Project settings 
</a>  
<P> 

<P>
<HR>
<A HREF="node8.htm#Node8"><IMG WIDTH=16 HEIGHT=16 SRC="previous.xbm"></A><A HREF="node8.htm#Node8"><IMG WIDTH=16 HEIGHT=16 SRC="up.xbm"></A><A HREF="node10.htm#Node10"><IMG WIDTH=16 HEIGHT=16 SRC="next.xbm"></A><BR>
<b>Up: </b><A HREF="node8.htm#Node8"> Programming Tips</a>
<b>Next: </b><A HREF="node10.htm#Node10"> Compiling with VC++ from the command line</a>
<b>Previous: </b><A HREF="node8.htm#Node8"> Programming Tips</a>
<P>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -