[Qt-interest] Qt code compiles fine on mscv9.0 but failed with gcc
Tim Dewhirst
tim at bugless.co.uk
Tue Jan 25 18:02:03 CET 2011
Hello,
On 25/01/2011 16:18, Bo Thorsen wrote:
> 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.
I completely agree with that; I've lost count of the number of times
we've gone to work on someone's codebase to discover they've been using
e.g. msvc9 exclusively with loads of warnings turned off, and then
wonder why their code won't compile first time with a different
compiler/platform/...
Tim
More information about the Qt-interest-old
mailing list