[Qt-interest] Qt code compiles fine on mscv9.0 but failed with gcc
Andreas Pakulat
apaku at gmx.de
Tue Jan 25 17:45:47 CET 2011
On 25.01.11 16:51:34, jjDaNiMoTh wrote:
> 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. :)
>
>
> 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.
Thats just wishful thinking. You can easily hit cases with both the
standard C API as well as the STL where code that compiles with the above
switches in gcc will not compile with MSVC. Some things are simply
different (for example to find out the current time).
Andreas
--
Your reasoning powers are good, and you are a fairly good planner.
More information about the Qt-interest-old
mailing list