Advertisement
Guest User

breakpad

a guest
Oct 28th, 2016
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.30 KB | None | 0 0
  1. #include "breakpad/client/windows/handler/exception_handler.h"
  2.  
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6.     QCoreApplication a(argc, argv);
  7.     google_breakpad::ExceptionHandler *pHandler = new google_breakpad::ExceptionHandler(
  8.         L"dumps\\",
  9.         0,
  10.         0,
  11.         0,
  12.         google_breakpad::ExceptionHandler::HANDLER_ALL,
  13.         MiniDumpNormal,
  14.         L"",
  15.         0);
  16.     return 0;
  17. }
  18.  
  19.  
  20.  
  21. Output log:
  22. 1>main.cpp(8): warning C4189: 'pHandler' : local variable is initialized but not referenced
  23. 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
  24. 1>debug\\App.exe : fatal error LNK1120: 1 unresolved externals
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement