You can't use longjmp/setjmp - http://en.cppreference.com/w/cpp/utility/program/longjmp
There are several popular "C" libraries that use them - jpeglib comes to mind, but there are others. Also certain language's runtime environment uses it. There is a way to handle it, but you need to take care.