hi coderz

i have a problem of how to organize source files for qmake.
structure

a/viewer3.cpp
...
..
b/x/nice/viewer3.cpp

viewer3.cpp is just a simple name within a directory for a bunch of methods.
same filenames in different folders sometimes can happen and make sense in the right context.
cmake can handle this.

if i call qmake -project everything seems ok.
after calling make i get "multiple definition"... what's not right from my point of view.


qmake also created "object_script.lea.Release" // project called lea
...
./winRelease/.obj/viewer3.o
./winRelease/.obj/bubble.o
./winRelease/.obj/overpaint.o
./winRelease/.obj/viewer3.o
./winRelease/.obj/calc3.o
...

allright - viewer3.o 2 times found in same folder - this cannot work!

do i have to use unique filnames always in every subfolder?
i thought (hoped) that qmake can handle files with same name and different path.

can i persuade qmake to create subdirs for the o files in the same structure like the source of project ?

thank you for help,
greetings