Skip to content

Fixed C++ README tests and aligned Windows toolchains - #558

Open
orzel320 wants to merge 7 commits into
open-atmos:mainfrom
orzel320:main
Open

orzel320 wants to merge 7 commits into
open-atmos:mainfrom
orzel320:main

Conversation

@orzel320

Copy link
Copy Markdown
Collaborator

I have updated gcc version used in compilation to newest, since the error present in 16.1.0 seems to have been fixed in 16.2.0. I have also explicitly linked nanobind in readme_cpp CMakeLists. By doing this I think I have resolved #557.

@orzel320
orzel320 requested a review from slayoo September 14, 2026 07:10
@codecov-commenter

codecov-commenter commented Sep 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.89%. Comparing base (3ae1a8a) to head (9cfbcc7).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #558   +/-   ##
=======================================
  Coverage   91.89%   91.89%           
=======================================
  Files          56       56           
  Lines        2530     2530           
  Branches      144      144           
=======================================
  Hits         2325     2325           
  Misses        131      131           
  Partials       74       74           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread README.md
set(PyPartMC_DIR "${PYPARTMC_CMAKE_DIR}")

find_package(PyPartMC REQUIRED)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@orzel320, IIUC, this should not be needed as all these symbols should be inside the PyPartMC library. Also, since this is only happening on Windows, the fix should likely only modify what happens on Windows.

Removed nanobind configuration and linking from CMake.
Adjust nanobind_add_module call and link options for non-Windows.
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.

C++ example: linking on Windows started to fail on CI with undefined reference to nanobind::detail::error_what(nanobind::detail::error_payload*)'`

3 participants