stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <>
Subject 18.exception.cpp test on Cygwin
Date Mon, 30 Jul 2007 18:07:59 GMT
  The 18.exception.cpp test fails to compile on gcc 3.4.4/Cygwin.

18.exception.cpp: In function `void test_runtime()':
18.exception.cpp:929: error: `setjmp' is not a member of `std'
18.exception.cpp: In function `int run_test(int, char**)':
18.exception.cpp:1023: error: `setjmp' is not a member of `std'

  The reason is that setjmp macro is not #defined in
/usr/include/setjmp.h and
setjmp() function not introduced in namespace std:: in

  18.exception.cpp file (line 66):
#  ifdef setjmp
#    define RW_SETJMP(env)       setjmp (env)
#  else
#    define RW_SETJMP(env)       std::setjmp (env)
#  endif


View raw message