cpp:-1: error: C1041: cannot open program database; untitled-build-desktop-debug\vc120.pdb'

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:\users\newfolder\untitled-build-desktop-debug\vc120.pdb'; if multiple CL.EXE write to the same .PDB file, please use /FS

6

2 Answers

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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like