RE: Linker error - fooView.obj LNK2005: _IID_IProvideTaskPage already defined in fooDoc.obj

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Al (anonymous_at_discussions.microsoft.com)
Date: 02/26/04


Date: Thu, 26 Feb 2004 04:01:07 -0800

Thanks for you efforts Joseph, they are appreciated, unfortunately, they've missed the root cause which was found by Bjarne Nielsen in a reply to a question I asked in another thread about some compilation errors I was getting. I'm convinced it was caused by my registry hacking. God knows what key I accidently deleted but it had a profound effect on my system!

Turns out that VC++ had the search paths for standard include and library files in the wrong order: the paths to the SDK include and library files were after those for the VC++ files. Making VC++ search the SDK directories first has fixed the problem.

Again, many thanks for your suggestions.

--- Al.