[petsc-users] Build hypre with Cmake and VS2010 to hypre.lib, no 'include' folder

Satish Balay balay at mcs.anl.gov
Tue Feb 25 08:40:35 CST 2014


>>>
MSVCRT.lib(MSVCR100.dll) : error LNK2005: malloc already defined in LIBCMT.lib(malloc.obj)
MSVCRT.lib(MSVCR100.dll) : error LNK2005: realloc already defined in LIBCMT.lib(realloc.obj)
MSVCRT.lib(MSVCR100.dll) : error LNK2005: free already defined in LIBCMT.lib(free.obj)
<<<

You'll have to build hypre with '/MT' or equivalent option.

All libraries should be built with the same option - otherwise MS
compilers barf at link time.

Satish

On Tue, 25 Feb 2014, Danyang Su wrote:

> On 24/02/2014 10:35 PM, Jed Brown wrote:
> > Danyang Su <danyang.su at gmail.com> writes:
> >
> > > Hi All,
> > >
> > > I can successfully build hypre to hypre.lib with cmake and vs2010, but I
> > > cannot find the include folder in the release folder. There is only one
> > > folder named "include" in src\FEI_mv\ml\src\include. Is this the one I
> > > need to configure with PETSc?
> > You should do what the "make install" target does.  See
> > $PETSC_DIR/config/PETSc/packages/hypre.py to see exactly which commands
> > PETSc normally executes.  You'll have to look at the hypre build system.
> After run install, I can get both lib file and include folder. But when
> configure with option
> "--with-hypre-include=/cygdrive/c/cygwin64/packages/hypre-2.9.0b/src/hypre/include
> --with-hypre-lib=/cygdrive/c/cygwin64/packages/hypre-2.9.0b/src/hypre/lib/HYPRE.lib",
> I got error indicating this option did not work.
> 
> Thanks,
> 
> Danyang
> 



More information about the petsc-users mailing list