<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="MSHTML 8.00.6001.19412">
<style title="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body ocsi="x">
<div dir="ltr"><font color="#000000" size="2" face="Tahoma">I have a program OK.cpp in the directory d:/Program Files/VC/</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">#incldue<stdio.h></font></div>
<div dir="ltr"><font size="2" face="tahoma">int main()</font></div>
<div dir="ltr"><font size="2" face="tahoma">{</font></div>
<div dir="ltr"><font size="2" face="tahoma">printf("OK");</font></div>
<div dir="ltr"><font size="2" face="tahoma">return 0;</font></div>
<div dir="ltr"><font size="2" face="tahoma">}</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">after cl OK.cpp , </font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">Microsoft <R> 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80X86</font></div>
<div dir="ltr"><font size="2" face="tahoma">Copyright <C> Microsoft Corposration. All rights reserved.</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">OK.cpp</font></div>
<div dir="ltr"><font size="2" face="tahoma">Microsoft <R> Incremental Linker Version 10.00.30319.01</font></div>
<div dir="ltr"><font size="2" face="tahoma">Copyright <C> MIcrosoft Corporation. All rights reserved.</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">/out:OK.exe</font></div>
<div dir="ltr"><font size="2" face="tahoma">OK.obj</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">Thanks!</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">Hao</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div style="DIRECTION: ltr" id="divRpF74509">
<hr tabindex="-1">
<font size="2" face="Tahoma"><b>发件人:</b> Matthew Knepley [knepley@gmail.com]<br>
<b>发送时间:</b> 2013年5月21日 18:44<br>
<b>收件人:</b> 余浩<br>
<b>抄送:</b> petsc-users<br>
<b>主题:</b> Re: [petsc-users] 答复: 答复: 答复: 答复: 答复: 转发: PETsc problem<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">On Tue, May 21, 2013 at 4:52 AM, 余浩 <span dir="ltr"><<a href="mailto:hao.yu@peraglobal.com">hao.yu@peraglobal.com</a>></span> wrote:<br>
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
It still has problem. I open VS2010 cmd, then login in bash, then configure following the instruction, it shows "if you use batch system, you should ./configure --with-batch. otherwise, the complier has some problem...." But cl really works.<br>
</blockquote>
<div><br>
</div>
<div>Please show us an example of your cl working from the command line. This means</div>
<div><br>
</div>
<div>  a) Open a command shell</div>
<div><br>
</div>
<div>  b) Create a simple program, just an empty main()</div>
<div><br>
</div>
<div>  c) Compile it with cl</div>
<div><br>
</div>
<div>  d) Mail us the program and all the output from this to <a href="mailto:petsc-maint@mcs.anl.gov">
petsc-maint@mcs.anl.gov</a></div>
<div><br>
</div>
<div>  Thanks,</div>
<div><br>
</div>
<div>     Matt</div>
<div> </div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
Thanks!<br>
<br>
<br>
Hao<br>
<br>
________________________________________<br>
发件人: Satish Balay [<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>]<br>
发送时间: 2013年5月20日 23:23<br>
收件人: 余浩<br>
抄送: <a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a><br>
主题: Re: [petsc-users] 答复: 答复:  答复: 答复: 转发: PETsc problem<br>
<br>
On Mon, 20 May 2013, 余浩 wrote:<br>
<br>
> I can use cl to compile file under Windows. But even if I include path which cl is in in the enviromental variable of Cygwin, it still shows "Win32fe cl" does not work.<br>
<br>
Have you checked the windows installation instructions?<br>
<br>
<a href="https://www.mcs.anl.gov/petsc/documentation/installation.html#windows" target="_blank">https://www.mcs.anl.gov/petsc/documentation/installation.html#windows</a><br>
<br>
You should start the 'compiler cmd' - and then run 'bash --login' inside it<br>
[and not 'set cygwin path to include cl']<br>
<br>
Satish<br>
<br>
> The attached is the configure.log and make.log<br>
> Thanks!<br>
><br>
> Hao<br>
> ________________________________<br>
> 发件人: Matthew Knepley [<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>]<br>
> 发送时间: 2013年5月11日 4:32<br>
> 收件人: 余浩; <a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a><br>
> 主题: Re: 答复: [petsc-users] 答复: 答复: 转发: PETsc problem<br>
><br>
> On Fri, May 10, 2013 at 12:11 PM, 余浩 <<a href="mailto:hao.yu@peraglobal.com">hao.yu@peraglobal.com</a><mailto:<a href="mailto:hao.yu@peraglobal.com">hao.yu@peraglobal.com</a>>> wrote:<br>
> What do you mean by compiling something with it ? I don't know. you mean 'win32fe cl' is not installed correctly?<br>
><br>
> I mean, can you compile a file using cl from the command line?<br>
><br>
>    Matt<br>
><br>
><br>
><br>
> Hao<br>
> ________________________________<br>
> 发件人: Matthew Knepley [<a href="mailto:knepley@gmail.com">knepley@gmail.com</a><mailto:<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>>]<br>
> 发送时间: 2013年5月10日 19:55<br>
> 收件人: 余浩<br>
> 抄送: <a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a><mailto:<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>><br>
> 主题: Re: [petsc-users] 答复: 答复: 转发: PETsc problem<br>
><br>
> On Fri, May 10, 2013 at 6:20 AM, 余浩 <<a href="mailto:hao.yu@peraglobal.com">hao.yu@peraglobal.com</a><mailto:<a href="mailto:hao.yu@peraglobal.com">hao.yu@peraglobal.com</a>>> wrote:<br>
><br>
> The configure.log and make.log are attached.<br>
><br>
> it shows that 'win32fe cl' does not work.  I dont' know what the problem is.<br>
><br>
> Can you compile something with it? It looks like it is not installed correctly.<br>
><br>
>    Matt<br>
><br>
> Thanks!<br>
><br>
><br>
><br>
> Hao<br>
> ________________________________________<br>
> 发件人: Jed Brown [<a href="mailto:five9a2@gmail.com">five9a2@gmail.com</a><mailto:<a href="mailto:five9a2@gmail.com">five9a2@gmail.com</a>>] 代表 Jed Brown [<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a><mailto:<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>>]<br>
> 发送时间: 2013年5月10日 15:16<br>
> 收件人: 余浩; petsc-users<br>
> 主题: Re: [petsc-users] 答复:  转发: PETsc problem<br>
><br>
> 余浩 <<a href="mailto:hao.yu@peraglobal.com">hao.yu@peraglobal.com</a><mailto:<a href="mailto:hao.yu@peraglobal.com">hao.yu@peraglobal.com</a>>> writes:<br>
><br>
> > it shows that 'win32fe cl' does not work.  I dont' know what the problem is.<br>
><br>
> You couldn't have found a less helpful way to report this.<br>
><br>
> Note the bold part:<br>
><br>
> <a href="http://www.mcs.anl.gov/petsc/documentation/bugreporting.html" target="_blank">
http://www.mcs.anl.gov/petsc/documentation/bugreporting.html</a><br>
><br>
><br>
<span class="HOEnZb"><font color="#888888">><br>
> --<br>
> What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
> -- Norbert Wiener<br>
><br>
><br>
><br>
> --<br>
> What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
> -- Norbert Wiener<br>
><br>
</font></span></blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener </div>
</div>
</div>
</body>
</html>