[Development] qt5 modules in namespaces
Thiago Macieira
thiago.macieira at intel.com
Tue Jan 3 19:01:08 CET 2012
On Tuesday, 3 de January de 2012 18.19.47, Denis Dzyubenko wrote:
> That's the thing - it doesn't work in some cases - if you do
> in-source-tree build of the attached project. Well now thinking about
> it, it is probably a bug in qmake.
>
> Denis.
You said:
> This is because qmake decided that moc_bar.cpp should be compiled as a
separate
> module, but moc didn't know about the namespace, so compilation fails.
Instead
> moc_bar.cpp should not be compiled separately, but included from bar.cpp.
qmake has some logic to detect when a .cpp is #included by another .cpp, so it
won't try to compile it. That should have kicked in.
I know that because I had the exactly opposite problem Friday: I had one .cpp
(qdrawhelper.cpp) that I wanted to be compiled on its own *and* as an #include
from somewhere else. qmake wouldn't do it.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120103/bdfab260/attachment.sig>
More information about the Development
mailing list