[Qt-interest] qmake: problem building source files which share the same name

Rui Maciel rui.maciel at gmail.com
Wed Sep 7 15:13:54 CEST 2011


I have a C++ project that contains two files which happen to share the same 
name, although they are located in separate parts of the source code tree.  
Those source code files are used to define two separate classes, which also 
share the same name but are included in different namespaces.  

When I ran qmake there wasn't a single warning.  Yet, running make triggered 
a set of errors regarding how some methods weren't defined.  After a bit of 
prodding I've noticed that if I renamed one of those source files which 
shared their name (and tweaked all project accordingly) to a unique name 
then the build succeeded without a single hitch.  

This leads me to suspect that qmake isn't able to handle source files which 
share their file name.  Is this true?  If it is, what strategies are there, 
besides renaming the file, that let the user side-step this sort of problem?


Thanks in advance,
Rui Maciel




More information about the Qt-interest-old mailing list