<div dir="ltr">Barry, Satish,<div><br></div><div>Thank you for your time and explanations. </div><div><br></div><div>Based on what you have explained, I think it will indeed be much easier for me to just build and use PETSc on my Linux system, since I don't build my own Python (I use whatever comes with the Anaconda Python distribution package). So, for me, it would be better to use PETSc with the Anaconda distribution for Unix-like systems.</div><div><br></div><div>Thanks again,</div><div>Brian</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 21, 2015 at 1:17 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Nov 21, 2015, at 3:05 PM, Brian Merchant <<a href="mailto:bhmerchant@gmail.com">bhmerchant@gmail.com</a>> wrote:<br>
><br>
> > [however you can't build petsc with cygwin/gnu compilers - and then<br>
> link in with an application using MS compilers]<br>
><br>
> Could you tell me a little more about what you mean here? (sorry, I am a newbie) Is it that if I make an application say in Visual Studio, and attempt to use that application to call PETSc functions compiled with Cygwin, then I will run into trouble?<br>
<br>
</span>  Brian,<br>
<br>
   If your application is in Visual Studio then you MUST build PETSc with the Microsoft/Intel compilers, you cannot use the cygwin gnu compilers.<br>
<span class=""><br>
><br>
> I contacted this group: <a href="http://www2.msic.ch/Software" rel="noreferrer" target="_blank">http://www2.msic.ch/Software</a><br>
> and got the latest build from them that is supposed to work with Visual Studio; which addresses your MS compilers concern?<br>
<br>
</span>  Unfortunately this is the previous release of PETSc so is somewhat out of date.<br>
<br>
  It is very strange that when you tried building you got garbage in the configure.log file. Can you try again (without the \ in compiler name business for any compiler.)<br>
<span class="">><br>
> However, I also want to use petsc4py Python bindings with PETSc, so I shouldn't be in trouble there if I use Cygwin, right?<br>
<br>
</span>   If you want to use petsc4py Python on a  Windows machine then you can try that with the Cygwin Gnu compilers (and the Cygwin python). I don't know if anyone has ever done it so some issues that need fixing may come up but it should be possible.<br>
<br>
   It is likely a great deal of work to get the petsc4py Python bindings working with Visual Studio code and the Windows python all together. That would be completely new territory.<br>
<span class="HOEnZb"><font color="#888888"><br>
  Barry<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
> Kind regards,<br>
> Brian<br>
><br>
> On Sat, Nov 21, 2015 at 12:55 PM, Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br>
> Hm - If you can work with cygwin/gnu compilers - then you can build<br>
> petsc with them - and use it.<br>
><br>
> [however you can't build petsc with cygwin/gnu compilers - and then<br>
> link in with an application using MS compilers]<br>
><br>
> Satish<br>
><br>
> On Sat, 21 Nov 2015, Brian Merchant wrote:<br>
><br>
> > Hi all,<br>
> ><br>
> > I'd like to try and install PETSc on Windows (even though I have been<br>
> > forewarned that it is better to simply install it on a unix system).<br>
> ><br>
> > Some information about my system:<br>
> > * Windows 10 Pro, 64 bit<br>
> > * latest Cygwin with make, gcc, g++, gfortran installed<br>
> ><br>
> > The PETSc installation instructions suggest that I run the following<br>
> > command:<br>
> ><br>
> >     ./configure --with-cc="win32fe cl"  --with-fc="win32fe ifort"<br>
> > --with-cxx="win32fe\ cl" --download-fblaslapack\<br>
> ><br>
> > However, that results in the following error:<br>
> ><br>
> >     C compiler you provided with -with-cc=win32fe cl does not work.<br>
> >     Cannot compile C with /cygdrive/a/petsc/bin/win32fe/win32fe cl.<br>
> ><br>
> ><br>
> > The answer to this stackexchange question:<br>
> > <a href="http://stackoverflow.com/questions/30229620/petsc-build-error-c-compiler-does-not-work" rel="noreferrer" target="_blank">http://stackoverflow.com/questions/30229620/petsc-build-error-c-compiler-does-not-work</a><br>
> ><br>
> > recommends the following command instead (with escaped whitespace):<br>
> ><br>
> >     ./configure --with-cc="win32fe\ cl"  --with-fc="win32fe\ ifort"<br>
> > --with-cxx="win32fe\ cl" --download-fblaslapack<br>
> ><br>
> > Running that command results in the following error (note no second line in<br>
> > error):<br>
> ><br>
> >     C compiler you provided with -with-cc=win32fe\ cl does not work.<br>
> ><br>
> > In both cases, the configure.log output only contains (I do not use Chinese<br>
> > characters, these were in the file):<br>
> ><br>
> > > 㰡祳汭湩㹫arch-mswin-c-debug/lib/petsc/conf/configure.log<br>
> ><br>
> > What should I do? Also, do `gcc`/`g++` compiled programs not work on<br>
> > Windows? I ask because if I simply run the suggested command in the "Quick<br>
> > Installation" guide, using `gcc` and `g++`; then I don't get compilation<br>
> > errors. Would it be okay to simply use those compilers then?<br>
> ><br>
> > Kind regards,<br>
> > Brian<br>
> ><br>
><br>
<br>
</div></div></blockquote></div><br></div>