Results 1 to 12 of 12

Thread: Meaning

  1. #1
    Join Date
    May 2009
    Posts
    129

    Default Meaning

    Hi

    What is the meaning of below error lines..



    debug/decipher.o: In function `ZN8Decipher17GetStatusUserListERK7QStringNS_6Pare ntE':
    D:/login/decipher.cpp:73: undefined reference to `_imp___ZN12QDomDocumentC1Ev'
    D:/login/decipher.cpp:75: undefined reference to `_imp___ZN12QDomNodeListC1Ev'
    D:/login/decipher.cpp:78: undefined reference to `_imp___ZN12QDomDocument10setContentERK7QStringPS0 _PiS4_'
    D:/login/decipher.cpp:83: undefined reference to `_imp___ZNK12QDomDocument17elementsByTagNameERK7QS tring'
    D:/login/decipher.cpp:83: undefined reference to `_imp___ZN12QDomNodeListaSERKS_'
    D:/login/decipher.cpp:83: undefined reference to `_imp___ZN12QDomNodeListD1Ev'
    D:/login/decipher.cpp:83: undefined reference to `_imp___ZN12QDomNodeListD1Ev'
    D:/login/decipher.cpp:86: undefined reference to `_imp___ZNK12QDomDocument17elementsByTagNameERK7QS tring'
    D:/login/decipher.cpp:86: undefined reference to `_imp___ZN12QDomNodeListaSERKS_'
    D:/login/decipher.cpp:86: undefined reference to `_imp___ZN12QDomNodeListD1Ev'
    D:/login/decipher.cpp:86: undefined reference to `_imp___ZN12QDomNodeListD1Ev'
    D:/login/decipher.cpp:93: undefined reference to `_imp___ZN11QDomElementC1Ev'
    D:/login/decipher.cpp:94: undefined reference to `_imp___ZNK8QDomNode9toElementEv'
    D:/login/decipher.cpp:94: undefined reference to `_imp___ZN11QDomElementaSERKS_'
    D:/login/decipher.cpp:94: undefined reference to `_imp___ZN8QDomNodeD1Ev'
    D:/login/decipher.cpp:94: undefined reference to `_imp___ZN8QDomNodeD1Ev'
    D:/login/decipher.cpp:101: undefined reference to `_imp___ZNK8QDomNode9namedItemERK7QString'
    D:/login/decipher.cpp:101: undefined reference to `_imp___ZNK8QDomNode9toElementEv'
    D:/login/decipher.cpp:101: undefined reference to `_imp___ZN11QDomElementaSERKS_'
    D:/login/decipher.cpp:101: undefined reference to `_imp___ZN8QDomNodeD1Ev'
    D:/login/decipher.cpp:101: undefined reference to `_imp___ZN8QDomNodeD1Ev'
    D:/login/decipher.cpp:108: undefined reference to `_imp___ZNK8QDomNode9


    thanks

    addu

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Meaning

    It means you didn't link with QtXml library.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    May 2009
    Posts
    129

    Default Re: Meaning

    I have included the Qtxml library

    see my file

    Qt Code:
    1. #include <QtXML/QDomNodeList>
    2. #include <QtCore/QTextStream>
    3.  
    4.  
    5. //=====================================================================
    6. Decipher::Decipher()
    7. {}
    8. //=====================================================================
    9. Decipher::~Decipher()
    10. {}
    11. //=====================================================================
    12. Returnables::PublicTimeline* Decipher::PublicTimeline(const QString &xml)
    13. {
    14. Returnables::PublicTimeline *publicTimeline = new Returnables::PublicTimeline();
    15.  
    16. QDomNodeList nodeList;
    17. QLinkedList<Returnables::Status*> list;
    18. // Nodes
    19. const QString status = "status";
    20. const QString statusCreatedAt = "created_at";
    21. const QString statusId = "id";
    22. const QString statusText = "text";
    23. const QString statusSource = "source";
    24. const QString statusTruncated = "truncated";
    25. const QString statusInReplyToStatusId = "in_reply_to_status_id";
    26. const QString statusInReplyToUserId = "in_reply_to_user_id";
    27. const QString statusFavorited = "favorited";
    28. const QString user = "user";
    29. const QString userId = "id";
    30. const QString userName = "name";
    31. const QString userScreenName = "screen_name";
    32. const QString userDescription = "description";
    33. const QString userLocation = "location";
    34. const QString userProfileImageUrl = "profile_image_url";
    35. const QString userUrl = "url";
    36. const QString userProtected = "protected";
    37. const QString userFollowersCount = "followers_count";
    38.  
    39. doc.setContent(xml);
    40.  
    41. nodeList = doc.elementsByTagName(status);
    42.  
    43. for(int i=0; i<nodeList.count(); i++)
    44. {
    45. Returnables::Status *status = new Returnables::Status();
    46.  
    47. node = nodeList.at(i).toElement();
    48.  
    49. status->createdAt = node.namedItem(statusCreatedAt).toElement().text();
    50. status->id = node.namedItem(statusId).toElement().text().toUInt();
    51. status->text = node.namedItem(statusText).toElement().text();
    52. status->source = node.namedItem(statusSource).toElement().text();
    53. status->truncated = (node.namedItem(statusTruncated).toElement().text() == "true") ? true : false;
    54. status->inReplyToStatusId = node.namedItem(statusInReplyToStatusId).toElement().text().toUInt();
    55. status->inReplyToUserId = node.namedItem(statusInReplyToUserId).toElement().text().toUInt();
    56. status->favorited = (node.namedItem(statusFavorited).toElement().text() == "true") ? true : false;
    57.  
    58. node = node.namedItem(user).toElement();
    59.  
    60. status->userInfo.id = node.namedItem(userId).toElement().text().toUInt();
    61. status->userInfo.name = node.namedItem(userName).toElement().text();
    62. status->userInfo.screenName = node.namedItem(userScreenName).toElement().text();
    63. status->userInfo.description = node.namedItem(userDescription).toElement().text();
    64. status->userInfo.location = node.namedItem(userLocation).toElement().text();
    65. status->userInfo.profileImageUrl = node.namedItem(userProfileImageUrl).toElement().text();
    66. status->userInfo.url = node.namedItem(userUrl).toElement().text();
    67. status->userInfo.isProtected = (node.namedItem(userProtected).toElement().text() == "true") ? true : false;
    68. status->userInfo.followersCount = node.namedItem(userFollowersCount).toElement().text().toUInt();
    69.  
    70. list.append(status);
    71. }
    72.  
    73. publicTimeline->statuses = list;
    74.  
    75. return publicTimeline;
    76. }
    77. //=====================================================================
    78. Returnables::FriendsTimeline* Decipher::FriendsTimeline(const QString &xml)
    79. {
    80. Returnables::FriendsTimeline *friendsTimeline = new Returnables::FriendsTimeline();
    81. friendsTimeline->statuses = PublicTimeline(xml)->statuses;
    82. return friendsTimeline;
    83. }
    To copy to clipboard, switch view to plain text mode 

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Meaning

    in your pro file QT += xml and rebuild via make clean if necessary.

  5. #5
    Join Date
    May 2008
    Posts
    61
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Meaning

    what wysota meant was you have to link the xml library.

    you can do that by adding the following to your .pro file:
    Qt Code:
    1. QT += xml
    To copy to clipboard, switch view to plain text mode 

  6. #6
    Join Date
    May 2009
    Posts
    129

    Default Re: Meaning

    Thanks

    that issue solved....


    Now it showing errors in Qt libs
    Qt Code:
    1. c:\Qt\2009.01\qt\lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.text+0x20d): undefined reference to `qMain(int, char**)'
    2. collect2: ld returned 1 exit status
    To copy to clipboard, switch view to plain text mode 

  7. #7
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Meaning

    have you rebuild you project after chancing your pro file?

  8. #8
    Join Date
    May 2009
    Posts
    129

    Default Re: Meaning

    Ya , i have rebuid my project..

    i am getting errors like that

    Here i attached my project file..
    Attached Files Attached Files

  9. #9
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Meaning

    add #include <string> into Server.h.
    btw, what do you want, create a lib?
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  10. #10
    Join Date
    May 2009
    Posts
    129

    Default Re: Meaning

    yes , i want to create library from the project..

    I added the #include <string> in Server.h file...

    Same thing is happening ...


    please help me

  11. #11
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Meaning

    read this.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  12. #12
    Join Date
    May 2009
    Posts
    129

    Default Re: Meaning

    Hi

    Thanks for supports...

    I realized my problem..

    I did mistake in .pro file..

    previously i had given TEMPLATE = app..

    But my requirement is lib ...

    So i changed app as lib ..

    Now it is working..


    Thanks

    Addu

Similar Threads

  1. special meaning of & symbol inside string
    By babu198649 in forum Newbie
    Replies: 1
    Last Post: 2nd February 2009, 08:19
  2. QGraphicsItem meaning of pos(), scenePos()
    By nicolas1 in forum Qt Programming
    Replies: 11
    Last Post: 9th October 2008, 09:59
  3. some warning meaning
    By MarkoSan in forum General Programming
    Replies: 2
    Last Post: 28th May 2008, 14:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.