Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-23-2010, 07:40 AM
|
#1
|
Member
Registered: May 2004
Distribution: Gentoo, Debian, OpenBSD, NetBSD
Posts: 158
Rep:
|
Qt "cannot call constructor for""a function-style cast remove the redundant ::QBrush"
This is an easy enough error to fix but I was wondering if someone could explain to me why its happening at all? I heard it was something in GCC, but I thought that sort of thing was legal syntax? Its in some code I didn't write so I'm not sure why its there in the first place, but I'm still curious.
|
|
|
11-24-2010, 01:32 AM
|
#2
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,700
|
what version of gcc are YOU using and what version of gcc was the qt code wrote for ?
there have been many changes from gcc 4.1 to gcc 4.5
ad the problem with things like QBrush::QBrush; change to QBrush ;
|
|
|
11-24-2010, 06:59 AM
|
#3
|
Member
Registered: May 2004
Distribution: Gentoo, Debian, OpenBSD, NetBSD
Posts: 158
Original Poster
Rep:
|
Quote:
Originally Posted by John VV
what version of gcc are YOU using and what version of gcc was the qt code wrote for ?
there have been many changes from gcc 4.1 to gcc 4.5
ad the problem with things like QBrush::QBrush; change to QBrush ;
|
Yeah I know that, I'm asking about the rational behind the changes.
|
|
|
11-24-2010, 03:07 PM
|
#4
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,700
|
Quote:
Yeah I know that, I'm asking about the rational behind the changes.
|
to force coders to write SECURE code and less unneeded code built into a program .
to have less common everyday bugs in new code
to improve the code base
|
|
|
11-24-2010, 04:57 PM
|
#5
|
Member
Registered: May 2004
Distribution: Gentoo, Debian, OpenBSD, NetBSD
Posts: 158
Original Poster
Rep:
|
Quote:
Originally Posted by John VV
to force coders to write SECURE code and less unneeded code built into a program .
to have less common everyday bugs in new code
to improve the code base
|
Actually, I'm asking about the specific change I posted...
|
|
|
All times are GMT -5. The time now is 10:36 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|