[Qt-interest] Qt code compiles fine on mscv9.0 but failed with gcc
Bob Hood
bhood2 at comcast.net
Tue Jan 25 15:54:48 CET 2011
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. :)
We build our code base on Windows, OS X and Linux, with Visual Studio being
the primary development environment. More frequently than is comfortable, we
are broadsided by the things that Microsoft's compiler allows and that GCC
will not.
While it's virtually impossible to develop any rules-of-thumb for what to do
to keep both compilers happy while you're writing your code, some form of
continuous integration would at least help you know as soon as possible when
something is wrong. For example, we use Buildbot to compile all changes
across all three platforms as soon as they are committed, and both OS X and
Linux use gcc. Although OS X takes the longest to compile of the three, Linux
is the fastest, and you can know pretty quickly if the change needs to be
re-factored.
More information about the Qt-interest-old
mailing list