User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 375,170 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,232 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser:
Views: 621 | Replies: 2
Reply
Join Date: Jul 2007
Posts: 2
Reputation: iw2nhl is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
iw2nhl iw2nhl is offline Offline
Newbie Poster

Strange linking error at run-time

  #1  
Jul 7th, 2007
Hi,
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:
my_program: symbol lookup error: libqtxml_plugin.so: undefined symbol: _ZN15QXmlInputSourceC1EP9QIODevice
The function is inside a plugin I've written to parse XML 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? 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.

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

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

Thanks to anyone who can help me, I really don't know what to do!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2006
Location: India
Posts: 6,732
Reputation: ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold 
Rep Power: 23
Solved Threads: 323
Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Rebellion Revamped

Re: Strange linking error at run-time

  #2  
Jul 7th, 2007
Asking it on the QT forums would be more like it since many must have encountered the same issue.
"I don't accept change. I don't deserve to live."

"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
Reply With Quote  
Join Date: Jul 2007
Posts: 2
Reputation: iw2nhl is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
iw2nhl iw2nhl is offline Offline
Newbie Poster

Re: Strange linking error at run-time

  #3  
Jul 7th, 2007
Yes, I'll try also with Qt forums (probably also in the official one http://www.qtcentre.org/forum/).

Anyway I'm not sure it is related to Qt, it seems me a C++ error.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb C++ Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 11:47 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC