By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 3021 - error: call of overloaded 'tqDebug(TQCString&)'
Summary: error: call of overloaded 'tqDebug(TQCString&)'
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: qt3 (show other bugs)
Version: R14.1.x [Trinity]
Hardware: Other Linux
: P5 normal
Assignee: Michele Calgaro
URL:
Depends on:
Blocks: R14.1.0
  Show dependency treegraph
 
Reported: 2019-06-26 15:56 CDT by Roman
Modified: 2019-09-09 20:59 CDT (History)
3 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman 2019-06-26 15:56:00 CDT
On the assembly of the example "widgets" the assembly ends with an error:

http://dpaste.com/0TX8FGR

Since there is no function:
Q_EXPORT void tqDebug( const char *);
ends with an error...

You need to either add a new function to tqt3, or change the function call in the example.
Something like that:

tqDebug (output, 0);

File: examples/widgets/widgets.cpp

System Gentoo, gcc version  8.3.0. TDE - 14.1.0.
Comment 1 Michele Calgaro 2019-09-02 10:35:40 CDT
Hi Roman,
is this still valid?
There was such problem for a very short while around the time of this bug report when doing some improvement in tqt3. But it was almost immediately fixed.
What is the status now?
Comment 2 Roman 2019-09-03 12:45:42 CDT
Hi!
Yes, it is still valid. The error is still present.
An argument of type TQCString is passed to the tqDebug function.
The compiler cannot select a function with an argument of type TQString or an argument of type char.
That's why I suggested replacing the call to the tqDebug function in the widgets.cpp file with a call:
tqDebug (output, 0);

The second argument will be ignored, so the compiler will use the tqDebug variant with the type  argument char.
Otherwise, you will have to write another handler for the tqDebug function with an argument of type TQCString.

For the assembly, I simply removed the example “widgets” from the assembly list:
sed '/widgets \\/d' -i ${S}/examples/examples.pro
Comment 3 Michele Calgaro 2019-09-04 08:01:52 CDT
We will add functions which take TQCString arguments.
Comment 4 Michele Calgaro 2019-09-04 22:00:12 CDT
I was able to replicate the problem here. Commit 80dc1e531 added the new functions and solved the problem.
https://mirror.git.trinitydesktop.org/gitea/TDE/tqt3/commit/80dc1e5317f9bf799df2493381484b1b65e77b5f

Can you please verify and confirm before I close the bug?
Comment 5 Michele Calgaro 2019-09-04 22:00:52 CDT
Note, the fix is only in tqt3. qt3 is no longer maintain for R14.1.x onwards.
Comment 6 Roman 2019-09-05 02:23:44 CDT
Now everything is fine, the error no longer pops up. 
For assembly I use overlay https://github.com/ormorph/TDE
There is no qt3 package in this overlay.
Deleted the line:
sed '/widgets \\/d' -i ${S}/examples/examples.pro

Now everything is going without errors.
Comment 7 Michele Calgaro 2019-09-09 20:59:54 CDT
Great, glad to know that and thanks for reporting the issue.
By the way, we encourage you to report bugs there, since TGW is now the place to go for development :-)

https://mirror.git.trinitydesktop.org/gitea
https://wiki.trinitydesktop.org/TDE_Gitea_Workspace  (user guide)