[Qt-interest] Qt code compiles fine on mscv9.0 but failed with gcc
Bo Thorsen
bo at fioniasoftware.dk
Tue Jan 25 17:18:22 CET 2011
Den 25-01-2011 16:51, jjDaNiMoTh skrev:
> 2011/1/25 Bob Hood<bhood2 at comcast.net>:
>> On 1/25/2011 6:24 AM, Bruno Colombet wrote:
>>> a call like this : addCustomChannel(chan) compiles in MSCV
>>> but gcc complains: error: default argument parameter of type 'QString&' has
>>> type 'QString'
>>>
>> Yeah, welcome to the nightmare of modern cross compiling. :)
I completely disagree with that (and it's multi compiler, not cross
compiler). The more time you spend on multiple compilers, the cleaner
C++ you write.
> Could I declare a theorem?
>
> If a program S build fine under gcc with -Wall -Werror, and you
> preserve include files, the same program S will build fine under MSVC.
http://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html
http://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Extensions.html
'Nuff said.
Bo Thorsen,
Fionia Software.
--
Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk
More information about the Qt-interest-old
mailing list