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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
