Skip to content

fix library build for msvc#16131

Draft
NeerajDwivedii wants to merge 2 commits into
googleapis:mainfrom
NeerajDwivedii:fix_msvc_build
Draft

fix library build for msvc#16131
NeerajDwivedii wants to merge 2 commits into
googleapis:mainfrom
NeerajDwivedii:fix_msvc_build

Conversation

@NeerajDwivedii
Copy link
Copy Markdown
Contributor

@NeerajDwivedii NeerajDwivedii commented Jun 2, 2026

This PR fixes compilation issues when building with the MSVC compiler on Windows.

  • The MSVC compiler was reporting an undefined reference error for the SignUsingSha256 function defined in /internal/win32/sign_using_sha256.cc. This issue has now been fixed.
  • Multiple error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'std::string' errors were occurring in several lambda functions. These have been fixed.
  • A string concatenation issue in rest_opentelemetry.cc that was causing compilation failures has also been fixed.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request captures kLocation in a lambda within oauth2_regional_access_boundary_token_manager.h and optimizes string concatenation in rest_opentelemetry.cc by replacing standard string addition with absl::StrCat. There are no review comments, and I have no feedback to provide.

@NeerajDwivedii NeerajDwivedii force-pushed the fix_msvc_build branch 3 times, most recently from 68561e8 to d72c57a Compare June 2, 2026 11:13
@NeerajDwivedii NeerajDwivedii marked this pull request as ready for review June 3, 2026 06:25
@NeerajDwivedii NeerajDwivedii requested a review from a team as a code owner June 3, 2026 06:25
@NeerajDwivedii NeerajDwivedii marked this pull request as draft June 3, 2026 06:26
@sachinpro
Copy link
Copy Markdown
Contributor

Lets pic this commit on a test PR for cpp-bigquery-odbc and run GHA checks on that to make sure it works.

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