Skip to content

libHttpClient.GDK.vcxproj: PDB conflict (C1041) when built with different LibHttpClientIncludeSuffix via AdditionalProperties#953

Merged
jasonsandlin merged 1 commit intomainfrom
user/jasonsa/gdk-build-fix
Apr 2, 2026
Merged

libHttpClient.GDK.vcxproj: PDB conflict (C1041) when built with different LibHttpClientIncludeSuffix via AdditionalProperties#953
jasonsandlin merged 1 commit intomainfrom
user/jasonsa/gdk-build-fix

Conversation

@jasonsandlin
Copy link
Copy Markdown
Member

When libHttpClient.GDK.vcxproj is built from a solution that triggers both the default build (LibHttpClientIncludeSuffix=true) and a ProjectReference build with AdditionalProperties setting LibHttpClientIncludeSuffix=false, MSBuild treats these as separate builds but both use the same IntDir ($(HCIntRoot)$(Platform)$(Configuration)\libHttpClient.GDK). Concurrent CL.EXE instances from each build collide on vc143.pdb, producing:

error C1041: cannot open program database '...\Int\x64\Release\libHttpClient.GDK\vc143.pdb';
if multiple CL.EXE write to the same .PDB file, please use /FS

Fix: Two changes:

  1. Separate IntDir when LibHttpClientIncludeSuffix=false so each build variant has its own intermediate directory
  2. Add /FS to ClCompile options as a safety net for concurrent PDB writes

…rent LibHttpClientIncludeSuffix via AdditionalProperties
Copy link
Copy Markdown
Member

@tculotta tculotta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@jasonsandlin jasonsandlin merged commit 8a9dd58 into main Apr 2, 2026
15 checks passed
@jasonsandlin jasonsandlin deleted the user/jasonsa/gdk-build-fix branch April 2, 2026 00:39
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

Successfully merging this pull request may close these issues.

2 participants