"fatal error U1087: cannot have : and :: dependents for same target"

KevenK picture KevenK · Jul 20, 2009 · Viewed 8.8k times · Source

Using the Microsoft Driver Development Kit (DDK), this error plagued me as I attempted even to build the default drivers included with the DDK.

I had a some difficulty in tracking down the cause and solution through Google. In an effort to aid others who may experience this same problem, I am documenting it here.



Error: "fatal error U1087: cannot have : and :: dependents for same target"

Solution: Make sure that the directory you are building in contains no spaces.





There may be other causes and solutions to this error, so please post below if you have others. This is the solution that worked immediately for me.

Answer

KevenK picture KevenK · Mar 25, 2010

Tthe solution to this problem is to ensure that there are no spaces in the build directory.