I ran across this issue while automating a particularly complex build. It turns out the C++ project was being built twice during the automated build. Ensuring the build only ran the C++ project once fixed up my problem.
Hope this helps anyone struggling with this combination of issues.