Giter Site home page Giter Site logo

xml-conv-json's People

Contributors

node-monk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tuananh

xml-conv-json's Issues

Error while installing xml-conv-json. (Windows and MacOS)

I have tried installing this on both windows 10 and macOSX with XCODE installed. Following is the log and node version (14.4.0), npm (6.14.5)

CXX(target) Release/obj.target/parseXML/parseXML.o
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:11:
.././libs/xml2json/include/rapidxml/rapidxml.hpp:517:28: warning: if statement has empty body [-Wempty-body]
if (!m_nullstr);
^
.././libs/xml2json/include/rapidxml/rapidxml.hpp:517:28: note: put the semicolon on a separate line to silence this warning
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
In file included from .././libs/xml2json/include/rapidjson/document.h:20:
In file included from .././libs/xml2json/include/rapidjson/reader.h:23:
.././libs/xml2json/include/rapidjson/internal/stack.h:38:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/internal/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
In file included from .././libs/xml2json/include/rapidjson/document.h:20:
In file included from .././libs/xml2json/include/rapidjson/reader.h:23:
.././libs/xml2json/include/rapidjson/internal/stack.h:38:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/internal/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
In file included from .././libs/xml2json/include/rapidjson/document.h:20:
In file included from .././libs/xml2json/include/rapidjson/reader.h:23:
.././libs/xml2json/include/rapidjson/internal/stack.h:60:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/internal/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
In file included from .././libs/xml2json/include/rapidjson/document.h:20:
In file included from .././libs/xml2json/include/rapidjson/reader.h:23:
.././libs/xml2json/include/rapidjson/internal/stack.h:60:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/internal/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:62:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:62:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:438:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:438:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:600:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:600:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1042:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1042:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1328:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1328:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1778:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1778:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1797:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1797:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:16:
In file included from .././libs/xml2json/include/rapidjson/prettywriter.h:18:
In file included from .././libs/xml2json/include/rapidjson/writer.h:23:
.././libs/xml2json/include/rapidjson/stringbuffer.h:20:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:16:
In file included from .././libs/xml2json/include/rapidjson/prettywriter.h:18:
In file included from .././libs/xml2json/include/rapidjson/writer.h:23:
.././libs/xml2json/include/rapidjson/stringbuffer.h:20:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:16:
In file included from .././libs/xml2json/include/rapidjson/prettywriter.h:18:
In file included from .././libs/xml2json/include/rapidjson/writer.h:23:
.././libs/xml2json/include/rapidjson/stringbuffer.h:41:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:16:
In file included from .././libs/xml2json/include/rapidjson/prettywriter.h:18:
In file included from .././libs/xml2json/include/rapidjson/writer.h:23:
.././libs/xml2json/include/rapidjson/stringbuffer.h:41:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
../parseXML.cc:19:27: error: no matching constructor for initialization of 'v8::String::Utf8Value'
v8::String::Utf8Value s1(info[0]);
^ ~~~~~~~
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3274:5: note: candidate constructor not viable: no known conversion from 'v8::Localv8::Value'
to 'const v8::String::Utf8Value' for 1st argument
Utf8Value(const Utf8Value&) = delete;
^
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3267:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
Utf8Value(Isolate* isolate, Localv8::Value obj);
^
../parseXML.cc:25:25: error: no viable conversion from 'MaybeLocalv8::String' to 'v8::Localv8::String'
v8::Localv8::String hTextJS = v8::String::NewFromUtf8(v8::Isolate::GetCurrent(), js1.c_str());
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:189:7: note: candidate constructor (the implicit copy constructor) not viable: no known
conversion from 'MaybeLocalv8::String' to 'const v8::Localv8::String &' for 1st argument
class Local {
^
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:189:7: note: candidate constructor (the implicit move constructor) not viable: no known
conversion from 'MaybeLocalv8::String' to 'v8::Localv8::String &&' for 1st argument
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:193:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
V8_INLINE Local(Local that)
^
../parseXML.cc:32:70: error: too few arguments to function call, single argument 'context' was not specified
Nan::Newv8::FunctionTemplate(parseXML)->GetFunction());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:6404:3: note: 'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8config.h:422:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:11:
.././libs/xml2json/include/rapidxml/rapidxml.hpp:1058:45: warning: comparison of integers of different signs: 'long' and 'unsigned long' [-Wsign-compare]
if ((attrname - freeme) >= (prefix_size + 6)) break;
~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
.././libs/xml2json/include/rapidxml/rapidxml.hpp:1027:13: note: in instantiation of member function 'rapidxml::xml_node::xmlns_lookup' requested here
xmlns_lookup(m_xmlns, m_xmlns_size, m_prefix, m_prefix_size);
^
.././libs/xml2json/include/rapidxml/rapidxml.hpp:1122:31: note: in instantiation of member function 'rapidxml::xml_node::xmlns' requested here
xmlns = this->xmlns();
^
.././libs/xml2json/include/xml2json.hpp:109:26: note: in instantiation of member function 'rapidxml::xml_node::first_node' requested here
if (xmlnode->first_node() && xmlnode->first_node()->type() == rapidxml::node_data && count_children(xmlnode) == 1)
^
24 warnings and 3 errors generated.
make: *** [Release/obj.target/parseXML/parseXML.o] Error 1
proy@Priyankas-MBP:workspace/ts-xml2js-benchmark ‹master›$ npm i -s xml-conv-json > log.txt
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:11:
.././libs/xml2json/include/rapidxml/rapidxml.hpp:517:28: warning: if statement has empty body [-Wempty-body]
if (!m_nullstr);
^
.././libs/xml2json/include/rapidxml/rapidxml.hpp:517:28: note: put the semicolon on a separate line to silence this warning
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
In file included from .././libs/xml2json/include/rapidjson/document.h:20:
In file included from .././libs/xml2json/include/rapidjson/reader.h:23:
.././libs/xml2json/include/rapidjson/internal/stack.h:38:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/internal/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
In file included from .././libs/xml2json/include/rapidjson/document.h:20:
In file included from .././libs/xml2json/include/rapidjson/reader.h:23:
.././libs/xml2json/include/rapidjson/internal/stack.h:38:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/internal/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
In file included from .././libs/xml2json/include/rapidjson/document.h:20:
In file included from .././libs/xml2json/include/rapidjson/reader.h:23:
.././libs/xml2json/include/rapidjson/internal/stack.h:60:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/internal/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
In file included from .././libs/xml2json/include/rapidjson/document.h:20:
In file included from .././libs/xml2json/include/rapidjson/reader.h:23:
.././libs/xml2json/include/rapidjson/internal/stack.h:60:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/internal/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:62:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:62:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:438:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:438:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:600:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:600:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1042:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1042:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1328:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1328:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1778:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1778:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1797:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1797:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:16:
In file included from .././libs/xml2json/include/rapidjson/prettywriter.h:18:
In file included from .././libs/xml2json/include/rapidjson/writer.h:23:
.././libs/xml2json/include/rapidjson/stringbuffer.h:20:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:16:
In file included from .././libs/xml2json/include/rapidjson/prettywriter.h:18:
In file included from .././libs/xml2json/include/rapidjson/writer.h:23:
.././libs/xml2json/include/rapidjson/stringbuffer.h:20:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:16:
In file included from .././libs/xml2json/include/rapidjson/prettywriter.h:18:
In file included from .././libs/xml2json/include/rapidjson/writer.h:23:
.././libs/xml2json/include/rapidjson/stringbuffer.h:41:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:16:
In file included from .././libs/xml2json/include/rapidjson/prettywriter.h:18:
In file included from .././libs/xml2json/include/rapidjson/writer.h:23:
.././libs/xml2json/include/rapidjson/stringbuffer.h:41:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
../parseXML.cc:19:27: error: no matching constructor for initialization of 'v8::String::Utf8Value'
v8::String::Utf8Value s1(info[0]);
^ ~~~~~~~
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3274:5: note: candidate constructor not viable: no known conversion from 'v8::Localv8::Value'
to 'const v8::String::Utf8Value' for 1st argument
Utf8Value(const Utf8Value&) = delete;
^
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3267:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
Utf8Value(Isolate* isolate, Localv8::Value obj);
^
../parseXML.cc:25:25: error: no viable conversion from 'MaybeLocalv8::String' to 'v8::Localv8::String'
v8::Localv8::String hTextJS = v8::String::NewFromUtf8(v8::Isolate::GetCurrent(), js1.c_str());
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:189:7: note: candidate constructor (the implicit copy constructor) not viable: no known
conversion from 'MaybeLocalv8::String' to 'const v8::Localv8::String &' for 1st argument
class Local {
^
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:189:7: note: candidate constructor (the implicit move constructor) not viable: no known
conversion from 'MaybeLocalv8::String' to 'v8::Localv8::String &&' for 1st argument
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:193:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
V8_INLINE Local(Local that)
^
../parseXML.cc:32:70: error: too few arguments to function call, single argument 'context' was not specified
Nan::Newv8::FunctionTemplate(parseXML)->GetFunction());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:6404:3: note: 'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8config.h:422:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:11:
.././libs/xml2json/include/rapidxml/rapidxml.hpp:1058:45: warning: comparison of integers of different signs: 'long' and 'unsigned long' [-Wsign-compare]
if ((attrname - freeme) >= (prefix_size + 6)) break;
~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
.././libs/xml2json/include/rapidxml/rapidxml.hpp:1027:13: note: in instantiation of member function 'rapidxml::xml_node::xmlns_lookup' requested here
xmlns_lookup(m_xmlns, m_xmlns_size, m_prefix, m_prefix_size);
^
.././libs/xml2json/include/rapidxml/rapidxml.hpp:1122:31: note: in instantiation of member function 'rapidxml::xml_node::xmlns' requested here
xmlns = this->xmlns();
^
.././libs/xml2json/include/xml2json.hpp:109:26: note: in instantiation of member function 'rapidxml::xml_node::first_node' requested here
if (xmlnode->first_node() && xmlnode->first_node()->type() == rapidxml::node_data && count_children(xmlnode) == 1)
^
24 warnings and 3 errors generated.
make: *** [Release/obj.target/parseXML/parseXML.o] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.