Results 1 to 2 of 2

Thread: Strange linking error at run-time

  1. #1
    Join Date
    Jul 2007
    Posts
    35
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Strange linking error at run-time

    Hi to everyone!
    I'm writing a C++ program with Qt4 libs.
    When I do a particular sequence of operations, my program exits (but does not crash) with this error in the console:
    Qt Code:
    1. my_program: symbol lookup error: libqtxml_plugin.so: undefined symbol: _ZN15QXmlInputSourceC1EP9QIODevice
    To copy to clipboard, switch view to plain text mode 
    The function is inside a plugin I've written to parse XML files, the program permits to choose the XML parser at run-time.
    The plugin uses the QtXml module to parse the XML file.
    I've written also another plugin which uses Xerce-c (because it can validate XML with XSD files).

    That piece of code works perfectly if I call it with another set of operations!

    Note that I tested it also on Windows 2000 (MinGW compiler) and asked a friend to test it on a Slackware: none of the two shows the problem.
    It seems related only to Debian.
    May be there is an error in the new GCC compiler (or linker or c++ libs)? MinGW and Slackware are using older versions of GCC.
    I tried with different versions of Qt4 (4.2.2, 4.2.3 and 4.3.0) and the error is always the same, so I think it is not related to Qt4 (but I may be wrong).
    The code seems right and gdb backtrace is of no help because the program is not crashing, simply forced to quit (so no backtrace at all).
    Can anyone give me an advice on what could cause this error?

    I'm using the standard Debian testing packages, regularly updated.

    OS:
    Linux Debian testing
    Compiler:
    gcc (GCC) 4.1.3 20070601 (prerelease) (Debian 4.1.2-12)
    CPU:
    AMD AthlonXP 2200+
    Kernel:
    2.6.18-4-k7

  2. #2
    Join Date
    May 2009
    Location
    Rosario, Argentina.
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Strange linking error at run-time

    Myabe the problem is related to this post: http://www.qtcentre.org/forum/f-qt-p...gins-3182.html

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.