Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio 2019/2022 pdb Errors On Compilation. #21

Open
SimonCSmith opened this issue Mar 14, 2024 · 0 comments
Open

Visual Studio 2019/2022 pdb Errors On Compilation. #21

SimonCSmith opened this issue Mar 14, 2024 · 0 comments

Comments

@SimonCSmith
Copy link

After using CMake GUI to generate a visual studio (2019 or 2022) solution, when building the solution in VS it will generate the following fatal errors relating to pdb generation:

fatal error C1090: PDB API call failed, error code '3'

I can't see why this is occuring - normally VS is happy with handling concurrency to a pdb file, but it does. All files have the same standard pdb location in the Config->C/C++->OutputFiles->Program Database File Name of: $(IntDir)vc$(PlatformToolsetVersion).pdb that any regulat VS solution would set.

My workaround (which should not be needed) is to change this macro to: $(IntDir)%(Filename)_vc$(PlatformToolsetVersion).pdb to make each file generate its own pdb file. This has the unfortunate knockon on slowing compilation right down as it also seems to suppress the parallel building of c++ files.

There must be something that is being set (or not set) by cmake to cause this.

CMakeGui: v3.28.1
HDOOspray 1.0.0-usdv32.02
Visual Studio 2019 or 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant