All the answers available for this problem are solutions for Visual studio. I am facing this problem in QT. I run a sample example but this error pops up.Could somebody help.
error: C1041: cannot open program database ‘c:usersnewfolderuntitled-build-desktop-debugvc120.pdb’; if multiple CL.EXE write to the same .PDB file, please use /FS
6
right click on project-> properties->c/c++ -> output files:
in Program Database File Name: include the project name with path. (…/../../../release/ProjectName/)
This approaches works for me.
1
(This answer may or may not only apply to those who have built QT from source.)
Ensure you are building with the same Visual Studio toolchain version that your QT distribution was built for.
I got this error when I used a build kit (Options -> Build & Run -> Kits) that was configured to use MSVC 2013 (12.0), but the QT Version was msvc2010_opengl
. Apparently the discrepancy led to an invalid build configuration. Modifying the build kit to use VS 2010 fixed the problem.