@marclava wrote:
I’m trying to use “old” addons on Linux with the latest nightly build, and the ofXml class is unhappy.
In testApp.cpp, setting is declared asofXml settings;
How to fix this error? :/home/marc/of/nightly/addons/ofxXMPP/example/src/testApp.cpp: In member function ‘virtual void testApp::setup()’: /home/marc/of/nightly/addons/ofxXMPP/example/src/testApp.cpp:10:51: error: no matching function for call to ‘ofXml::getValue(const char [7])’ string server = settings.getValue("server"); ^ In file included from /home/marc/of/nightly/libs/openFrameworks/ofMain.h:22:0, from /home/marc/of/nightly/addons/ofxXMPP/example/src/testApp.h:3, from /home/marc/of/nightly/addons/ofxXMPP/example/src/testApp.cpp:1: /home/marc/of/nightly/libs/openFrameworks/utils/ofXml.h:166:4: note: candidate: template<class T> T ofXml::getValue() const T getValue() const{ ^~~~~~~~ /home/marc/of/nightly/libs/openFrameworks/utils/ofXml.h:166:4: note: template argument deduction/substitution failed: /home/marc/of/nightly/addons/ofxXMPP/example/src/testApp.cpp:10:51: note: candidate expects 0 arguments, 1 provided string server = settings.getValue("server"); ^ In file included from /home/marc/of/nightly/libs/openFrameworks/ofMain.h:22:0, from /home/marc/of/nightly/addons/ofxXMPP/example/src/testApp.h:3, from /home/marc/of/nightly/addons/ofxXMPP/example/src/testApp.cpp:1: /home/marc/of/nightly/libs/openFrameworks/utils/ofXml.h:170:14: note: candidate: std::__cxx11::string ofXml::getValue() const std::string getValue() const;
Posts: 1
Participants: 1