我试图使用setjmp/longjmp错误处理,但是,调用longjmp导致程序退出时使用MSVC 2010编译代码0,在这里是完整的邮件: The program '[5020] test.exe: Native' has exited with code 0 (0x0).
这里是代码: #include <setjmp.h>
#include <stdio.h>
int main(v
我主要确信我自己遇到过一些g ++ 4.8.3错误,但我想我会首先询问这个列表,因为我几乎没有经验那么setjmp/longjmp的。我已经简化了我的代码到以下foo.cxx: #include <setjmp.h>
#include <string.h>
// Changing MyStruct to be just a single int makes the compiler happ