Skip to content

fix: add missing cstdlib header in cli_args.cpp#8089

Merged
tgoyne merged 1 commit intorealm:masterfrom
karan-singare:fix/missing-cstdlib-header
Dec 15, 2025
Merged

fix: add missing cstdlib header in cli_args.cpp#8089
tgoyne merged 1 commit intorealm:masterfrom
karan-singare:fix/missing-cstdlib-header

Conversation

@karan-singare
Copy link
Contributor

What, How & Why?

Fix compilation issue by adding missing cstdlib header in cli_args.cpp. This resolves a build compatibility problem where std::strtol function was used without including the proper header declaration, causing compilation failures in some environments.

The fix ensures the code compiles correctly across different platforms and compiler versions by providing the proper declaration for the std::strtol function used on line 67.

This closes #8088

☑️ ToDos

  • 📝 Changelog entry
  • 📝 Compatibility label is updated or copied from previous entry
  • 📝 Update COMPATIBILITY.md
  • 🚦 Tests
  • 📦 Updated internal package version in consuming package.jsons (if updating internal packages)
  • 📱 Check the React Native/other sample apps work if necessary
  • 💥 Breaking label has been applied or is not necessary
  • 🔔 Mention @realm/devdocs if documentation changes are needed

Add missing #include <cstdlib> header to provide declaration for std::strtol function used on line 67. This fixes compilation issues in some environments where the function declaration was not available.

This closes realm#8088
@XilinJia
Copy link

I started keeping a fork of this project and updating it on crucial issues. The first release fixed issues of building with NDK 29, which include this. Welcome to contribute to it.
https://github.com/XilinJia/realm-core

@tgoyne tgoyne merged commit 86733dc into realm:master Dec 15, 2025
1 check failed
nirinchev pushed a commit that referenced this pull request Dec 16, 2025
Add missing #include <cstdlib> header to provide declaration for std::strtol function used on line 67. This fixes compilation issues in some environments where the function declaration was not available.

This closes #8088

(cherry picked from commit 86733dc)
nirinchev added a commit that referenced this pull request Dec 16, 2025
…8091)

Co-authored-by: Karan Singh Singare <39034130+karan-singare@users.noreply.github.com>
fix: add missing cstdlib header in cli_args.cpp (#8089)
closes #8088
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: compilation error due to missing cstdlib header in cli_args.cpp

3 participants