Error in compilation of XSD 4.0.0 no match for 'operator<<'
Installation of XSD compiler and runtime headers is facilitated by the packaged sources and dependencies file, available here: https://www.codesynthesis.com/download/xsd/4.0/xsd-4.0.0+dep.tar.bz2
Once unpacked, the installation is done via make (assumes xerces-c is installed):
make CPPFLAGS="-std=c++11 $XERCESC_CXXFLAGS" LDFLAGS="$XERCESC_LDFLAGS" install install_prefix=$XSD_INSTALL
This throws an error:
./libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx:297:13: error: no match for ‘operator<<’ (operand types are ‘std::wostream’ {aka ‘std::basic_ostream<wchar_t>’} and ‘const char*’)
297 | return os << path.string ().c_str ();
| ~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | const char*
| std::wostream {aka std::basic_ostream<wchar_t>}
which requires the header to be added to the elements.cxx file.