[petsc-dev] PetscSegv_sigaction / PetscCheckPointer don't build using visual studio

Chetan Jhurani chetan.jhurani at gmail.com
Wed Jul 11 13:10:42 CDT 2012


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.

Chetan





More information about the petsc-dev mailing list