LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 11-23-2010, 07:40 AM   #1
Peterius
Member
 
Registered: May 2004
Distribution: Gentoo, Debian, OpenBSD, NetBSD
Posts: 157

Rep: Reputation: 16
Question 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.
 
Old 11-24-2010, 01:32 AM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 13,031

Rep: Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740
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 ;
 
Old 11-24-2010, 06:59 AM   #3
Peterius
Member
 
Registered: May 2004
Distribution: Gentoo, Debian, OpenBSD, NetBSD
Posts: 157

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by John VV View Post
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.
 
Old 11-24-2010, 03:07 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 13,031

Rep: Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740
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
 
Old 11-24-2010, 04:57 PM   #5
Peterius
Member
 
Registered: May 2004
Distribution: Gentoo, Debian, OpenBSD, NetBSD
Posts: 157

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by John VV View Post
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Any way to get "Alice"; "Call of Duty" series and "Descent 3" to work? JBailey742 Linux - Games 13 06-23-2006 01:34 PM
When "function pointer" meets "template"... I can't get rid of this compiling er cyu021 Linux - Software 3 12-17-2004 07:52 PM
"Function not implemented" error in call to "sem_open()" Krishnendu8 Linux - Newbie 1 06-07-2003 02:52 AM
"Function not imlemented" error in call to "sem_open()" Krishnendu8 Linux - Networking 0 06-07-2003 02:19 AM


All times are GMT -5. The time now is 12:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration