Witam.
Używam biblioteki RapidXML do obsługi plików xml w których zapisuję mapę mojej gry.
jednak podczas wywołania funkcji print kompilator wyrzuca błąd
ofstream myfile;
myfile.open (filename);
print(myfile,doc,0);
C:\..\rapidxml_print.hpp||In instantiation of 'OutIt rapidxml::internal::print_node(OutIt, const rapidxml::xml_node<Ch>*, int, int) [with OutIt = std::ostream_iterator<char, char, std::char_traits<char> >; Ch = char]':|
C:\..\rapidxml_print.hpp|390|required from 'OutIt rapidxml::print(OutIt, const rapidxml::xml_node<Ch>&, int) [with OutIt = std::ostream_iterator<char, char, std::char_traits<char> >; Ch = char]'|
C:\..\rapidxml_print.hpp|403|required from 'std::basic_ostream<Ch>& rapidxml::print(std::basic_ostream<Ch>&, const rapidxml::xml_node<Ch>&, int) [with Ch = char]'|
C:\..\main.cpp|698|required from here|
C:\..\rapidxml_print.hpp|115|error: 'print_children' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]|
C:\..\rapidxml_print.hpp|169|note: 'template<class OutIt, class Ch> OutIt rapidxml::internal::print_children(OutIt, const rapidxml::xml_node<Ch>*, int, int)' declared here, later in the translation unit|
C:\..\rapidxml_print.hpp|120|error: 'print_element_node' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]|
C:\..\rapidxml_print.hpp|242|note: 'template<class OutIt, class Ch> OutIt rapidxml::internal::print_element_node(OutIt, const rapidxml::xml_node<Ch>*, int, int)' declared here, later in the translation unit|
C:\..\rapidxml_print.hpp|125|error: 'print_data_node' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]|
C:\..\rapidxml_print.hpp|208|note: 'template<class OutIt, class Ch> OutIt rapidxml::internal::print_data_node(OutIt, const rapidxml::xml_node<Ch>*, int, int)' declared here, later in the translation unit|
C:\..\rapidxml_print.hpp|130|error: 'print_cdata_node' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]|
C:\..\rapidxml_print.hpp|219|note: 'template<class OutIt, class Ch> OutIt rapidxml::internal::print_cdata_node(OutIt, const rapidxml::xml_node<Ch>*, int, int)' declared here, later in the translation unit|
C:\..\rapidxml_print.hpp|135|error: 'print_declaration_node' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]|
C:\..\rapidxml_print.hpp|298|note: 'template<class OutIt, class Ch> OutIt rapidxml::internal::print_declaration_node(OutIt, const rapidxml::xml_node<Ch>*, int, int)' declared here, later in the translation unit|
C:\..\rapidxml_print.hpp|140|error: 'print_comment_node' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]|
C:\..\rapidxml_print.hpp|321|note: 'template<class OutIt, class Ch> OutIt rapidxml::internal::print_comment_node(OutIt, const rapidxml::xml_node<Ch>*, int, int)' declared here, later in the translation unit|
C:\..\rapidxml_print.hpp|145|error: 'print_doctype_node' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]|
C:\..\rapidxml_print.hpp|339|note: 'template<class OutIt, class Ch> OutIt rapidxml::internal::print_doctype_node(OutIt, const rapidxml::xml_node<Ch>*, int, int)' declared here, later in the translation unit|
C:\..\rapidxml_print.hpp|150|error: 'print_pi_node' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]|
C:\..\rapidxml_print.hpp|361|note: 'template<class OutIt, class Ch> OutIt rapidxml::internal::print_pi_node(OutIt, const rapidxml::xml_node<Ch>*, int, int)' declared here, later in the translation unit|
||=== Build failed: 8 error(s), 18 warning(s) (0 minute(s), 1 second(s)) ===|
czy jest jakiś sposób na naprawienie tego lub inny sposób na zapisanie tego.
dodanie znacznika <code> - furious programming
<code>
, bo zawiera znaki, które parser rozpoznaje i niepotrzebnie formatuje treść posta...