Menu

‘class TiXmlNode’ has no member named ‘cut’

2013-03-13
2013-03-13
  • Eckard Klotz

    Eckard Klotz - 2013-03-13

    Some days ago I've got the following e-mail from Juan Jose Lopez Villarejo :

    Best regards,
    Eckard Klotz.

    Hello,

    Please, forget the previous e-mails. This is the 'valid' one:

    I have tried to compile the sources for the version
    Src_xml2abc_2012_10_22 of Moritz 2.

    I get many errors like the following
    diverse/cpp/app_tool.cpp: In function ‘void
    F_APP_TOOL::collectFiles(TiXmlNode, TiXmlElement, std::string,
    std::string, std::string, bool, std::string, TiXmlElement)’:
    diverse/cpp/app_tool.cpp:438: error: ‘class TiXmlNode’ has no member
    named ‘pasteAfterChild’
    diverse/cpp/app_tool.cpp: In function ‘void
    F_APP_TOOL::completeXML(TiXmlElement
    , std::string)’:
    diverse/cpp/app_tool.cpp:591: error: ‘class TiXmlNode’ has no member
    named ‘cut’
    diverse/cpp/app_tool.cpp:597: error: ‘class TiXmlNode’ has no member
    named ‘cut’

    In the attachment you have exactly what I am trying to compile: you
    can run the script file "run".
    This script calls my compiler gcc 4.2 with all the source files,
    including the directories for the headers, and setting the
    preprocessor variables.

    I have used:
    spirit-1.8.5-miniboost
    tinyxml_2_6_2

    which I have just copied inside the compilation directory, and I have
    declared their directories for the headers.
    I have deleted
    xmltest.cpp
    from tinyxml

    Looking forward to your reply. Cheers,

    Juan

     
  • Eckard Klotz

    Eckard Klotz - 2013-03-13

    Hello Juan

    You are the first user who tries to build the new version instead of
    using the binary available ready to download. I assume that you are
    working with a Mac and therefor you have to do so. How ever your
    compileroutput showed me that I have forgot something important in the
    build-information. I have expanded the method-interface of TinyXml a
    little bit. You should already have the c-sources of my new code but
    there is a small change in original c-source necessary to expend the
    class-definition in the file tinyxml.h .
    ...
    I use in my tinyxml.h from the line 740 to
    line747 the following code-fragment directly over the keyword
    "protected" in the class-declaration of TiXmlNode:

    /***********/

    include "TiXmlNode_ao.h"

    /
    TiXmlNode
    cut(TiXmlNode cutThis );
    TiXmlNode
    pasteBeforeChild( TiXmlNode beforeThis, TiXmlNode addThis );
    TiXmlNode pasteAfterChild( TiXmlNode afterThis, TiXmlNode addThis );
    /
    /***********/

    Please insert this lines in your file exactly there. Then it should
    work.

    If you have additional problems please post them in the help-forum and it will be very kind of you if you allow me to copy this communication into it since this may also be interesting for other users.

    Best regards,
    Eckard.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.