[Qt-interest] Qt mocks issue multiple definition of
Konrad Rosenbaum
konrad at silmor.de
Mon Nov 1 09:33:37 CET 2010
On Sunday 31 October 2010 22:11:10 Pavel Koshevoy wrote:
> The object file names are derived from the source file names, which
> means they are also not unique and should not be dumped into the same
> folder. It's a qmake bug.
Correction: it's a missing feature. Every program has limits. You have
successfully discovered one of the limits of qmake. There are more (like
internal classes cannot be QObjects). Almost any workaround or "fix" that you
could come up with for this particular problem has new problems - eg.
replacing / with _ is by far not unique and will break quite a few existing
projects (I leave it to you to find out why ;-) ).
If you want to use qmake, you have to work within its limitations. If these
limits are too tight for you just use a different system (for example plain
Makefiles with GNU-style patterns can work wonderfully here; I don't know
whether cmake has this specific limitation).
Konrad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101101/c42fc46e/attachment.bin
More information about the Qt-interest-old
mailing list