On 25/02/2014 6:40 AM, Satish Balay wrote:
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.
It can now be configured without any problem now. Thanks so much.

Danyang

Satish

On Tue, 25 Feb 2014, Danyang Su wrote:

On 24/02/2014 10:35 PM, Jed Brown wrote:
Danyang Su <[email protected]> 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


Reply via email to