Skip to content

Conversation

@karan-singare
Copy link

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
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.

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

1 participant