PDA

View Full Version : warning: duplicate script for target



lyuts
7th September 2010, 12:15
Hi, guys.

I’m trying to build my project, but getting this error.



"Makefile", line 353: warning: duplicate script for target ".obj/Language.o" ignored
"Makefile", line 356: warning: duplicate script for target ".obj/Procedure.o" ignored


The truth is, I have several files Language.{cpp,h} and Procedure.{cpp,h} under different directories. And these files are different. And as I understand this conflict causes the above error.

My question is: Is there any way to make qmake handle this issue? Or I will have to rename some of these files in order to avoid name duplication? Is there any way to make qmake create a custom directory structure under OBJECTS_DIR?

Thanks, in advance!