Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "breakpad/client/windows/handler/exception_handler.h"
- int main(int argc, char *argv[])
- {
- QCoreApplication a(argc, argv);
- google_breakpad::ExceptionHandler *pHandler = new google_breakpad::ExceptionHandler(
- L"dumps\\",
- 0,
- 0,
- 0,
- google_breakpad::ExceptionHandler::HANDLER_ALL,
- MiniDumpNormal,
- L"",
- 0);
- return 0;
- }
- Output log:
- 1>main.cpp(8): warning C4189: 'pHandler' : local variable is initialized but not referenced
- 1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall google_breakpad::ExceptionHandler::ExceptionHandler(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &,bool (__cdecl*)(void *,struct _EXCEPTION_POINTERS *,struct MDRawAssertionInfo *),bool (__cdecl*)(wchar_t const *,wchar_t const *,void *,struct _EXCEPTION_POINTERS *,struct MDRawAssertionInfo *,bool),void *,int,enum _MINIDUMP_TYPE,wchar_t const *,struct google_breakpad::CustomClientInfo const *)" (??0ExceptionHandler@google_breakpad@@QAE@ABV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@P6A_NPAXPAU_EXCEPTION_POINTERS@@PAUMDRawAssertionInfo@@@ZP6A_NPB_W5123_N@Z1HW4_MINIDUMP_TYPE@@5PBUCustomClientInfo@1@@Z) referenced in function _main
- 1>debug\\App.exe : fatal error LNK1120: 1 unresolved externals
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement