[petsc-users] Error when compiling petsc on windows
Bruno Ramon Batista Fernande
brbfernandes at utexas.edu
Tue Sep 29 00:54:02 CDT 2015
Dear petsc users,
I have been trying to use use PETSC on my project on windows. I have
followed all steps and compiled petsc on windows using cygwin and cmake.
Then I included it on my visual studio project with all other dependencies.
After fixing several errors I got stuck with this one:
Error 1 error LNK2019: unresolved external symbol __imp_GetUserNameA
referenced in function PetscGetUserName libpetsc.lib(fuser.o)
Anyone has any Idea of which library I should include to solve such
problem?
I am using windows 8 machine with visual studio 2013 and Intel fortran
2013, MS MPI, metis, parmetis, and mkl. All libraries are compiled to x64
and the platform on the VS project was set to x64. I have also activated
the use of common windows libraries on the VS project to solve other
problems. This is the configure I used:
./configure --with-cc='win32fe cl' --with-fc='win32fe ifort'
--prefix=/cygdrive/c/Installed/petsc-opt/ --PETSC_ARCH=windows-intel-opt
--with-parmetis=1
--with-parmetis-include=/cygdrive/c/Installed/Parmetis/include_all/
--with-parmetis-lib=\[/cygdrive/c/Installed/Parmetis/lib/parmetis.lib\]
--with-metis=1
--with-metis-include=/cygdrive/c/Installed/Parmetis/include_all/
--with-metis-lib=\[/cygdrive/c/Installed/Parmetis/lib/metis.lib\]
--with-mpi-include=[/cygdrive/c/Installed/MPI/Include/,/cygdrive/c/Installed/MPI/Include/x64/]
--with-mpi-lib=[/cygdrive/c/Installed/MPI/Lib/x64/msmpi.lib,/cygdrive/c/Installed/MPI/Lib/x64/msmpifec.lib]
--with-blas-lapack-lib=[/cygdrive/c/Installed/mkl/lib/intel64/mkl_intel_lp64.lib,/cygdrive/c/Installed/mkl/lib/intel64/mkl_core.lib,/cygdrive/c/Installed/mkl/lib/intel64/mkl_sequential.lib]
--with-scalapack-include=/cygdrive/c/Installed/mkl/include
--with-scalapack-lib=[/cygdrive/c/Installed/mkl/lib/intel64/mkl_scalapack_lp64.lib,/cygdrive/c/Installed/mkl/lib/intel64/mkl_blacs_msmpi_lp64.lib]
--with-fortran-interfaces=1 --with-debugging=0
regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150929/d4dfeb76/attachment.html>
More information about the petsc-users
mailing list