<div dir="ltr">> <span style="font-size:12.8px">[however you can't build petsc with cygwin/gnu compilers - and then</span><br style="font-size:12.8px"><span style="font-size:12.8px">link in with an application using MS compilers]</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">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?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I contacted this group: <a href="http://www2.msic.ch/Software">http://www2.msic.ch/Software</a></span></div><div>and got the latest build from them that is supposed to work with Visual Studio; which addresses your MS compilers concern?</div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">However, I also want to use petsc4py Python bindings with PETSc, so I shouldn't be in trouble there if I use Cygwin, right? </span></div><div><br></div><div>Kind regards,</div><div>Brian</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 21, 2015 at 12:55 PM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@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">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>
<span class="HOEnZb"><font color="#888888"><br>
Satish<br>
</font></span><div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br></div>