Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~/dev/znc-otr ‹master›
- ╰─➤ make
- LIBS="-lotr" znc-buildmod otr.cpp
- Building "otr.so" for ZNC 1.4... otr.cpp:197:17: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat]
- PROTOCOL_ID, OTRL_INSTAG_BEST, 0, nullptr, nullptr, nullptr);
- ^
- otr.cpp:47:41: error: expected class-name before ‘{’ token
- class COtrGenKeyJob : public CModuleJob {
- ^
- otr.cpp:52:20: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
- void runThread() override;
- ^
- otr.cpp:53:18: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
- void runMain() override;
- ^
- otr.cpp:52:10: error: ‘void COtrGenKeyJob::runThread()’ marked override, but does not override
- void runThread() override;
- ^
- otr.cpp:53:10: error: ‘void COtrGenKeyJob::runMain()’ marked override, but does not override
- void runMain() override;
- ^
- otr.cpp: In constructor ‘COtrGenKeyJob::COtrGenKeyJob(CModule*)’:
- otr.cpp:50:11: error: class ‘COtrGenKeyJob’ does not have any field named ‘CModuleJob’
- : CModuleJob(pModule, "OtrGenKey", "OTR key generator") {}
- ^
- otr.cpp: At global scope:
- otr.cpp:63:17: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
- void RunJob() override;
- ^
- otr.cpp:67:22: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
- bool bSmpReply = false;
- ^
- otr.cpp:559:56: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
- bool OnLoad(const CString& sArgs, CString& sMessage) override {
- ^
- otr.cpp:683:14: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
- ~COtrMod() override {
- ^
- otr.cpp:759:58: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
- EModRet OnUserMsg(CString& sTarget, CString& sMessage) override {
- ^
- otr.cpp:768:61: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
- EModRet OnUserAction(CString& sTarget, CString& sMessage) override {
- ^
- otr.cpp:784:53: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
- EModRet OnPrivMsg(CNick& Nick, CString& sMessage) override {
- ^
- otr.cpp:839:24: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
- void OnClientLogin() override {
- ^
- otr.cpp: In member function ‘void COtrMod::CmdInfo(const CString&)’:
- otr.cpp:197:51: error: ‘nullptr’ was not declared in this scope
- PROTOCOL_ID, OTRL_INSTAG_BEST, 0, nullptr, nullptr, nullptr);
- ^
- otr.cpp: In member function ‘void COtrMod::CmdGenKey(const CString&)’:
- otr.cpp:501:39: error: ‘AddJob’ was not declared in this scope
- AddJob(new COtrGenKeyJob(this));
- ^
- otr.cpp: In member function ‘void COtrMod::SaveIgnores()’:
- otr.cpp:505:38: error: ‘class CString’ has no member named ‘Join’
- CString sFlat = CString(" ").Join(m_vsIgnored.begin(), m_vsIgnored.end());
- ^
- otr.cpp: In member function ‘bool COtrMod::IsIgnored(const CString&)’:
- otr.cpp:512:33: error: range-based ‘for’ loops are not allowed in C++98 mode
- for (const CString& s : m_vsIgnored) {
- ^
- otr.cpp: In member function ‘void COtrMod::CmdIgnore(const CString&)’:
- otr.cpp:523:37: error: range-based ‘for’ loops are not allowed in C++98 mode
- for (const CString& s : m_vsIgnored) {
- ^
- otr.cpp: At global scope:
- otr.cpp:1194:31: error: ‘nullptr’ was not declared in this scope
- .update_context_list = nullptr, // do nothing
- ^
- otr.cpp:1195:31: error: ‘nullptr’ was not declared in this scope
- .new_fingerprint = nullptr, // do nothing
- ^
- otr.cpp:1201:31: error: ‘nullptr’ was not declared in this scope
- .account_name = nullptr, // unused, deprecated
- ^
- otr.cpp:1202:31: error: ‘nullptr’ was not declared in this scope
- .account_name_free = nullptr,
- ^
- otr.cpp:1206:31: error: ‘nullptr’ was not declared in this scope
- .resent_msg_prefix = nullptr, // uses [resent] by default
- ^
- otr.cpp:1207:31: error: ‘nullptr’ was not declared in this scope
- .resent_msg_prefix_free = nullptr,
- ^
- otr.cpp:1211:31: error: ‘nullptr’ was not declared in this scope
- .convert_msg = nullptr, // no conversion
- ^
- otr.cpp:1212:31: error: ‘nullptr’ was not declared in this scope
- .convert_free = nullptr,
- ^
- otr.cpp: In member function ‘void COtrGenKeyJob::runThread()’:
- otr.cpp:1233:52: error: ‘GetModule’ was not declared in this scope
- COtrMod* mod = static_cast<COtrMod*>(GetModule());
- ^
- otr.cpp: In member function ‘void COtrGenKeyJob::runMain()’:
- otr.cpp:1241:52: error: ‘GetModule’ was not declared in this scope
- COtrMod* mod = static_cast<COtrMod*>(GetModule());
- ^
- [ !! ] Error while building "otr.so"
- Makefile:6: recipe for target 'otr.so' failed
- make: *** [otr.so] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement