[petsc-dev] another Microsoft compile issue

Satish Balay balay at mcs.anl.gov
Tue Mar 11 14:56:44 CDT 2014


On Tue, 11 Mar 2014, Jed Brown wrote:

> Barry Smith <bsmith at mcs.anl.gov> writes:
> 
> >   const struct {PetscInt i,j; PetscScalar v;} entries[] = {{0,3,1.},{1,2,2.},{2,1,3.},{2,5,4.},{3,0,5.},{3,6,6.},{4,1,7.},{4,4,8.}};
> >
> > /home/sbalay/petsc.clone-2/bin/win32fe/win32fe cl -o ex151.o -c -DMPICH_SKIP_MPICXX -MT -GR -EHsc -Z7 -Zm200  -TP    -I/home/sbalay/petsc.clone-2/include -I/home/sbalay/petsc.clone-2/arch-mswin-cxx-cmplx/include -I/cygdrive/c/Program\ Files/MPICH2/include    `pwd`/ex151.c
> > ex151.c
> > C:\cygwin\home\sbalay\PETSC~2.CLO\src\mat\examples\tests\ex151.c(18) : error C2440: 'initializing' : cannot convert from 'const int' to 'const struct '
> >         No constructor could take the source type, or constructor overload resolution was ambiguous
> 
> I don't know.  Looks like valid C to me.
> 
> Do we have a build using the MS C++ compiler?  I hate to say it, but
> they don't maintain their C compiler and may stop shipping it at any
> time, so it's more important to ensure that PETSc builds with their C++.

this is a c++ complex build. [I see c build is fine with this compiler].

Satish



More information about the petsc-dev mailing list