<div dir="ltr">No, I did not get these errors with petsc examples. Actually I do not know that we have petsc examples and how to run them. <br><br>I got this error when I used PETSc in my own application. Now I have solved this problem. it is caused as I did not use the right path for "Additional include directories".<br><br>Thanks </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 8, 2021 at 12:31 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Do you get these errors with a petsc example?<br>
<br>
BTW: Best to send text [via copy/paste] - instead if images.<br>
<br>
Satish<br>
<br>
On Tue, 7 Dec 2021, Ning Li wrote:<br>
<br>
> I rebuilt HYPRE with cmake on my windows laptop. But this time I got more<br>
> linker problems. Could you have a look at these linker errors? Thanks<br>
> [image: image.png]<br>
> <br>
> <br>
> On Tue, Dec 7, 2021 at 10:28 AM Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> wrote:<br>
> <br>
> > Yes - you need to build hypre with the same mpi, compilers (compiler<br>
> > options) as petsc.<br>
> ><br>
> > Satish<br>
> ><br>
> > On Tue, 7 Dec 2021, Ning Li wrote:<br>
> ><br>
> > > I tried to use this new PETSc in my application, and got this HYPRE<br>
> > related<br>
> > > error when I built a solution in visual studio.<br>
> > > [image: image.png]<br>
> > > I have installed the latest HYPRE on my laptop and linked it to my<br>
> > > application, but I disabled MPI option when I configured HYPRE .<br>
> > > Is this why this error occurred?<br>
> > ><br>
> > > On Tue, Dec 7, 2021 at 9:31 AM Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> wrote:<br>
> > ><br>
> > > > Your build is with msmpi - but mpiexec from openmpi got used.<br>
> > > ><br>
> > > > You can try compiling and running examples manually [with the correct<br>
> > > > mpiexec]<br>
> > > ><br>
> > > > Satish<br>
> > > ><br>
> > > > On Tue, 7 Dec 2021, <a href="mailto:liyuansen89@gmail.com" target="_blank">liyuansen89@gmail.com</a> wrote:<br>
> > > ><br>
> > > > > Hi Satish,<br>
> > > > ><br>
> > > > > I have another question. After I run the check command, I got the<br>
> > > > following<br>
> > > > > output (the attached file), have I successfully installed the<br>
> > library? Is<br>
> > > > > there any error?<br>
> > > > ><br>
> > > > > Thanks<br>
> > > > ><br>
> > > > ><br>
> > > > ><br>
> > > > > -----Original Message-----<br>
> > > > > From: Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>><br>
> > > > > Sent: Monday, December 6, 2021 6:59 PM<br>
> > > > > To: Ning Li <<a href="mailto:liyuansen89@gmail.com" target="_blank">liyuansen89@gmail.com</a>><br>
> > > > > Cc: petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>><br>
> > > > > Subject: Re: [petsc-users] install PETSc on windows<br>
> > > > ><br>
> > > > > Glad it worked. Thanks for the update.<br>
> > > > ><br>
> > > > > Satish<br>
> > > > ><br>
> > > > > On Mon, 6 Dec 2021, Ning Li wrote:<br>
> > > > ><br>
> > > > > > Thanks for your reply.<br>
> > > > > ><br>
> > > > > > After I added '--with-shared-libraries=0', the configuration stage<br>
> > > > > > passed and now it is executing the 'make' command!<br>
> > > > > ><br>
> > > > > > Thanks very much<br>
> > > > > ><br>
> > > > > > On Mon, Dec 6, 2021 at 5:21 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>><br>
> > wrote:<br>
> > > > > ><br>
> > > > > > > >>><br>
> > > > > > > Executing: /home/LiNin/petsc-3.16.1/lib/petsc/bin/win32fe/win32fe<br>
> > > > > > > ifort -o<br>
> > > > > > ><br>
> > > > ><br>
> > > ><br>
> > /cygdrive/c/Users/LiNin/AppData/Local/Temp/petsc-5ly209eh/config.libraries/c<br>
> > > > > onftest.exe<br>
> > > > > > > -MD -O3 -fpp<br>
> > > > > > ><br>
> > /cygdrive/c/Users/LiNin/AppData/Local/Temp/petsc-5ly209eh/config.lib<br>
> > > > > > > raries/conftest.o /cygdrive/c/Program\ Files\ \(x86\)/Microsoft\<br>
> > > > > > > SDKs/MPI/Lib/x64/msmpi.lib /cygdrive/c/Program\ Files\<br>
> > > > > > > \(x86\)/Microsoft\ SDKs/MPI/Lib/x64/msmpifec.lib Ws2_32.lib<br>
> > > > > > > stdout: LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts<br>
> > with<br>
> > > > > > > use of other libs; use /NODEFAULTLIB:library <<<<br>
> > > > > > ><br>
> > > > > > > I'm not sure why this link command is giving this error. Can you<br>
> > > > > > > retry with '--with-shared-libraries=0'?<br>
> > > > > > ><br>
> > > > > > > Satish<br>
> > > > > > ><br>
> > > > > > ><br>
> > > > > > > On Mon, 6 Dec 2021, Ning Li wrote:<br>
> > > > > > ><br>
> > > > > > > > Howdy,<br>
> > > > > > > ><br>
> > > > > > > > I am trying to install PETSc on windows with cygwin but got an<br>
> > mpi<br>
> > > > > error.<br>
> > > > > > > > Could you have a look at my issue and give me some<br>
> > instructions?<br>
> > > > > > > ><br>
> > > > > > > > Here is the information about my environment:<br>
> > > > > > > > 1. operation system: windows 11<br>
> > > > > > > > 2. visual studio version: 2019<br>
> > > > > > > > 3. intel one API toolkit is installed 4. Microsoft MS MPI is<br>
> > > > > > > > installed.<br>
> > > > > > > > 5. Intel MPI is uninstalled.<br>
> > > > > > > > 6. PETSc version: 3.16.1<br>
> > > > > > > ><br>
> > > > > > > > this is my configuration:<br>
> > > > > > > > ./configure --with-cc='win32fe cl' --with-fc='win32fe ifort'<br>
> > > > > > > > --prefix=~/petsc-opt/ --PETSC_ARCH=windows-intel-opt<br>
> > > > > > > > --with-mpi-include=['/cygdrive/c/Program Files (x86)/Microsoft<br>
> > > > > > > > SDKs/MPI/Include','/cygdrive/c/Program Files (x86)/Microsoft<br>
> > > > > > > > SDKs/MPI/Include/x64'] --with-mpi-lib=['/cygdrive/c/Program<br>
> > Files<br>
> > > > > > > > (x86)/Microsoft<br>
> > SDKs/MPI/Lib/x64/msmpi.lib','/cygdrive/c/Program<br>
> > > > > > > > Files (x86)/Microsoft SDKs/MPI/Lib/x64/msmpifec.lib']<br>
> > > > > > > > --with-blas-lapack-lib=['/cygdrive/c/Program Files<br>
> > > > > > > ><br>
> > > > > > ><br>
> > (x86)/Intel/oneAPI/mkl/2021.3.0/lib/intel64/mkl_intel_lp64.lib','/cy<br>
> > > > > > > gdrive/c/Program<br>
> > > > > > > > Files<br>
> > > > > > > ><br>
> > > > > > ><br>
> > (x86)/Intel/oneAPI/mkl/2021.3.0/lib/intel64/mkl_core.lib','/cygdrive<br>
> > > > > > > /c/Program<br>
> > > > > > > > Files<br>
> > > > > > > ><br>
> > (x86)/Intel/oneAPI/mkl/2021.3.0/lib/intel64/mkl_sequential.lib']<br>
> > > > > > > > --with-scalapack-include='/cygdrive/c/Program Files<br>
> > > > > > > > (x86)/Intel/oneAPI/mkl/2021.3.0/include'<br>
> > > > > > > > --with-scalapack-lib=['/cygdrive/c/Program Files<br>
> > > > > > > ><br>
> > > > > > ><br>
> > (x86)/Intel/oneAPI/mkl/2021.3.0/lib/intel64/mkl_scalapack_lp64.lib',<br>
> > > > > > > '/cygdrive/c/Program<br>
> > > > > > > > Files<br>
> > > > > > > ><br>
> > (x86)/Intel/oneAPI/mkl/2021.3.0/lib/intel64/mkl_blacs_msmpi_lp64.l<br>
> > > > > > > > ib']<br>
> > > > > > > > --with-fortran-interfaces=1 --with-debugging=0<br>
> > > > > > > ><br>
> > > > > > > > attached is the configure.log file.<br>
> > > > > > > ><br>
> > > > > > > > Thanks<br>
> > > > > > > ><br>
> > > > > > > > Ning Li<br>
> > > > > > > ><br>
> > > > > > ><br>
> > > > > > ><br>
> > > > > ><br>
> > > > ><br>
> > > > ><br>
> > > ><br>
> > > ><br>
> > ><br>
> ><br>
> ><br>
> <br>
<br>
</blockquote></div>