[xsd-users] Generated sources without xerces dependency

endight . endight at gmail.com
Mon Jun 19 08:59:46 EDT 2017


Yes it seems it is what i need.
But i getting error when trying to perform link step from tutorial:

c++ -o driver driver.o hello-pskel.o .../libxsde/xsde/libxsde.a

the output is in attached file.


2017-06-17 19:34 GMT+03:00 Bernhard Rapp <bernhard.rapp at student.tugraz.at>:

> Hey,
>
> did you already saw the XSD/e Project:
>
> http://www.codesynthesis.com/projects/xsde/
>
>
> Maybe this is what you looking for?
>
>
> br,
>
> Bernhard
>
> On 16.06.2017 21:27, endight . wrote:
> > Is it possible to generated such bindings that there will be no any other
> > dependencies besides the generated files itself? To not link the xerces
> lib.
>
>
>
-------------- next part --------------
Undefined symbols for architecture x86_64:
  "std::istream::read(char*, long)", referenced from:
      xsde::cxx::parser::expat::document_pimpl::parse(std::istream&) in libxsde.a(document.o)
  "std::ostream::write(char const*, long)", referenced from:
      xsde::cxx::operator<<(std::ostream&, xsde::cxx::ro_string const&) in libxsde.a(ro-string.o)
  "std::string::_M_leak_hard()", referenced from:
      xsde::cxx::parser::validating::string_common::validate_facets(std::string&, xsde::cxx::parser::validating::string_facets::facets const&, xsde::cxx::parser::context&) in libxsde.a(string-common.o)
  "std::string::_Rep::_M_destroy(std::allocator<char> const&)", referenced from:
      xsde::cxx::parser::validating::string_pimpl::post_string() in libxsde.a(string-stl.o)
      xsde::cxx::parser::validating::string_pimpl::~string_pimpl() in libxsde.a(string-stl.o)
      xsde::cxx::parser::validating::string_pimpl::~string_pimpl() in libxsde.a(string-stl.o)
  "std::string::_Rep::_S_empty_rep_storage", referenced from:
      xsde::cxx::parser::validating::string_pimpl::post_string() in libxsde.a(string-stl.o)
      xsde::cxx::parser::validating::string_pimpl::~string_pimpl() in libxsde.a(string-stl.o)
      xsde::cxx::parser::validating::string_pimpl::~string_pimpl() in libxsde.a(string-stl.o)
  "std::string::swap(std::string&)", referenced from:
      xsde::cxx::parser::validating::string_pimpl::post_string() in libxsde.a(string-stl.o)
  "std::string::append(char const*, unsigned long)", referenced from:
      xsde::cxx::parser::validating::string_pimpl::_characters(xsde::cxx::ro_string const&) in libxsde.a(string-stl.o)
  "std::string::resize(unsigned long, char)", referenced from:
      xsde::cxx::parser::validating::string_common::validate_facets(std::string&, xsde::cxx::parser::validating::string_facets::facets const&, xsde::cxx::parser::context&) in libxsde.a(string-common.o)
  "std::string::_M_mutate(unsigned long, unsigned long, unsigned long)", referenced from:
      xsde::cxx::parser::validating::string_pimpl::_pre() in libxsde.a(string-stl.o)
  "std::__basic_file<char>::~__basic_file()", referenced from:
      xsde::cxx::parser::expat::document_pimpl::parse(char const*) in libxsde.a(document.o)
  "std::basic_filebuf<char, std::char_traits<char> >::open(char const*, std::_Ios_Openmode)", referenced from:
      xsde::cxx::parser::expat::document_pimpl::parse(char const*) in libxsde.a(document.o)
  "std::basic_filebuf<char, std::char_traits<char> >::close()", referenced from:
      xsde::cxx::parser::expat::document_pimpl::parse(char const*) in libxsde.a(document.o)
  "std::basic_filebuf<char, std::char_traits<char> >::basic_filebuf()", referenced from:
      xsde::cxx::parser::expat::document_pimpl::parse(char const*) in libxsde.a(document.o)
  "std::basic_filebuf<char, std::char_traits<char> >::~basic_filebuf()", referenced from:
      xsde::cxx::parser::expat::document_pimpl::parse(char const*) in libxsde.a(document.o)
  "std::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream()", referenced from:
      xsde::cxx::parser::expat::document_pimpl::parse(char const*) in libxsde.a(document.o)
  "std::locale::~locale()", referenced from:
      xsde::cxx::parser::expat::document_pimpl::parse(char const*) in libxsde.a(document.o)
  "std::ios_base::Init::Init()", referenced from:
      __GLOBAL__sub_I_document.cxx in libxsde.a(document.o)
      __GLOBAL__sub_I_ro_string.cxx in libxsde.a(ro-string.o)
      __GLOBAL__sub_I_exceptions.cxx in libxsde.a(exceptions.o)
  "std::ios_base::Init::~Init()", referenced from:
      __GLOBAL__sub_I_document.cxx in libxsde.a(document.o)
      __GLOBAL__sub_I_ro_string.cxx in libxsde.a(ro-string.o)
      __GLOBAL__sub_I_exceptions.cxx in libxsde.a(exceptions.o)
  "std::ios_base::ios_base()", referenced from:
      xsde::cxx::parser::expat::document_pimpl::parse(char const*) in libxsde.a(document.o)
  "std::ios_base::~ios_base()", referenced from:
      xsde::cxx::parser::expat::document_pimpl::parse(char const*) in libxsde.a(document.o)
  "std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*)", referenced from:
      xsde::cxx::parser::expat::document_pimpl::parse(char const*) in libxsde.a(document.o)
  "std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)", referenced from:
      xsde::cxx::parser::expat::document_pimpl::parse(std::istream&) in libxsde.a(document.o)
      xsde::cxx::parser::expat::document_pimpl::parse(char const*) in libxsde.a(document.o)
      xsde::cxx::parser::operator<<(std::ostream&, xsde::cxx::parser::exception const&) in libxsde.a(exceptions.o)
  "std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)", referenced from:
      xsde::cxx::parser::operator<<(std::ostream&, xsde::cxx::parser::exception const&) in libxsde.a(exceptions.o)
  "VTT for std::basic_ifstream<char, std::char_traits<char> >", referenced from:
      xsde::cxx::parser::expat::document_pimpl::parse(char const*) in libxsde.a(document.o)
  "vtable for std::basic_filebuf<char, std::char_traits<char> >", referenced from:
      xsde::cxx::parser::expat::document_pimpl::parse(char const*) in libxsde.a(document.o)
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "vtable for std::basic_ifstream<char, std::char_traits<char> >", referenced from:
      xsde::cxx::parser::expat::document_pimpl::parse(char const*) in libxsde.a(document.o)
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "vtable for std::basic_streambuf<char, std::char_traits<char> >", referenced from:
      xsde::cxx::parser::expat::document_pimpl::parse(char const*) in libxsde.a(document.o)
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "vtable for std::basic_ios<char, std::char_traits<char> >", referenced from:
      xsde::cxx::parser::expat::document_pimpl::parse(char const*) in libxsde.a(document.o)
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture x86_64


More information about the xsd-users mailing list