Re: [petsc-dev] PetscSegv_sigaction / PetscCheckPointer don't build using visual studio
On Wed, 11 Jul 2012, Chetan Jhurani wrote:
Hi,
The recent changes to PetscCheckPointer in petsc-dev don't build on windows when using Visual Studio 2005 and 2010.
They have a very bare-bones signal implementation. http://msdn.microsoft.com/en-us/library/xdkz3x12.aspx
The first error encountered is due to this new code in petsc-private/petscimpl.h
#if defined(PETSC_HAVE_SETJMP_H) #include <signal.h> #include <setjmp.h> PETSC_EXTERN jmp_buf PetscSegvJumpBuf; PETSC_EXTERN void PetscSegv_sigaction(int, siginfo_t*, void *);
PETSC_HAVE_SETJMP_H is 1 and both signal.h and setjmp.h are found but they don't define siginfo_t. I'm sure there the compiler doesn't implement a lot of other stuff in PetscCheckPointer.
fixed now. http://petsc.cs.iit.edu/petsc/petsc-dev/rev/68976e0f458f http://petsc.cs.iit.edu/petsc/BuildSystem/rev/71be541c881b Satish
participants (1)
-
Satish Balay