Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 5.96 KB | None | 0 0
  1. ~/dev/znc-otr  ‹master›
  2. ╰─➤  make
  3. LIBS="-lotr" znc-buildmod otr.cpp
  4. Building "otr.so" for ZNC 1.4... otr.cpp:197:17: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat]
  5.                  PROTOCOL_ID, OTRL_INSTAG_BEST, 0, nullptr, nullptr, nullptr);
  6.                  ^
  7. otr.cpp:47:41: error: expected class-name before ‘{’ token
  8.  class COtrGenKeyJob : public CModuleJob {
  9.                                          ^
  10. otr.cpp:52:20: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
  11.      void runThread() override;
  12.                     ^
  13. otr.cpp:53:18: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
  14.      void runMain() override;
  15.                   ^
  16. otr.cpp:52:10: error:void COtrGenKeyJob::runThread()’ marked override, but does not override
  17.      void runThread() override;
  18.           ^
  19. otr.cpp:53:10: error:void COtrGenKeyJob::runMain()’ marked override, but does not override
  20.      void runMain() override;
  21.           ^
  22. otr.cpp: In constructor ‘COtrGenKeyJob::COtrGenKeyJob(CModule*):
  23. otr.cpp:50:11: error: class ‘COtrGenKeyJob’ does not have any field named ‘CModuleJob’
  24.          : CModuleJob(pModule, "OtrGenKey", "OTR key generator") {}
  25.            ^
  26. otr.cpp: At global scope:
  27. otr.cpp:63:17: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
  28.      void RunJob() override;
  29.                  ^
  30. otr.cpp:67:22: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
  31.      bool bSmpReply = false;
  32.                       ^
  33. otr.cpp:559:56: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
  34.      bool OnLoad(const CString& sArgs, CString& sMessage) override {
  35.                                                         ^
  36. otr.cpp:683:14: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
  37.      ~COtrMod() override {
  38.               ^
  39. otr.cpp:759:58: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
  40.      EModRet OnUserMsg(CString& sTarget, CString& sMessage) override {
  41.                                                           ^
  42. otr.cpp:768:61: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
  43.      EModRet OnUserAction(CString& sTarget, CString& sMessage) override {
  44.                                                              ^
  45. otr.cpp:784:53: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
  46.      EModRet OnPrivMsg(CNick& Nick, CString& sMessage) override {
  47.                                                      ^
  48. otr.cpp:839:24: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
  49.      void OnClientLogin() override {
  50.                         ^
  51. otr.cpp: In member function ‘void COtrMod::CmdInfo(const CString&):
  52. otr.cpp:197:51: error: ‘nullptr’ was not declared in this scope
  53.                  PROTOCOL_ID, OTRL_INSTAG_BEST, 0, nullptr, nullptr, nullptr);
  54.                                                    ^
  55. otr.cpp: In member function ‘void COtrMod::CmdGenKey(const CString&):
  56. otr.cpp:501:39: error: ‘AddJob’ was not declared in this scope
  57.          AddJob(new COtrGenKeyJob(this));
  58.                                        ^
  59. otr.cpp: In member function ‘void COtrMod::SaveIgnores():
  60. otr.cpp:505:38: error:class CString’ has no member named ‘Join’
  61.          CString sFlat = CString(" ").Join(m_vsIgnored.begin(), m_vsIgnored.end());
  62.                                       ^
  63. otr.cpp: In member function ‘bool COtrMod::IsIgnored(const CString&):
  64. otr.cpp:512:33: error: range-based ‘for’ loops are not allowed in C++98 mode
  65.          for (const CString& s : m_vsIgnored) {
  66.                                  ^
  67. otr.cpp: In member function ‘void COtrMod::CmdIgnore(const CString&):
  68. otr.cpp:523:37: error: range-based ‘for’ loops are not allowed in C++98 mode
  69.              for (const CString& s : m_vsIgnored) {
  70.                                      ^
  71. otr.cpp: At global scope:
  72. otr.cpp:1194:31: error: ‘nullptr’ was not declared in this scope
  73.      .update_context_list    = nullptr, // do nothing
  74.                                ^
  75. otr.cpp:1195:31: error: ‘nullptr’ was not declared in this scope
  76.      .new_fingerprint        = nullptr, // do nothing
  77.                                ^
  78. otr.cpp:1201:31: error: ‘nullptr’ was not declared in this scope
  79.      .account_name           = nullptr, // unused, deprecated
  80.                                ^
  81. otr.cpp:1202:31: error: ‘nullptr’ was not declared in this scope
  82.      .account_name_free      = nullptr,
  83.                                ^
  84. otr.cpp:1206:31: error: ‘nullptr’ was not declared in this scope
  85.      .resent_msg_prefix      = nullptr, // uses [resent] by default
  86.                                ^
  87. otr.cpp:1207:31: error: ‘nullptr’ was not declared in this scope
  88.      .resent_msg_prefix_free = nullptr,
  89.                                ^
  90. otr.cpp:1211:31: error: ‘nullptr’ was not declared in this scope
  91.      .convert_msg            = nullptr, // no conversion
  92.                                ^
  93. otr.cpp:1212:31: error: ‘nullptr’ was not declared in this scope
  94.      .convert_free           = nullptr,
  95.                                ^
  96. otr.cpp: In member function ‘void COtrGenKeyJob::runThread():
  97. otr.cpp:1233:52: error: ‘GetModule’ was not declared in this scope
  98.      COtrMod* mod = static_cast<COtrMod*>(GetModule());
  99.                                                     ^
  100. otr.cpp: In member function ‘void COtrGenKeyJob::runMain():
  101. otr.cpp:1241:52: error: ‘GetModule’ was not declared in this scope
  102.      COtrMod* mod = static_cast<COtrMod*>(GetModule());
  103.                                                     ^
  104. [ !! ] Error while building "otr.so"
  105. Makefile:6: recipe for target 'otr.so' failed
  106. make: *** [otr.so] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement