Skip to content

solution: add missing parallel_boards.cpp/.hpp to VS projects#222

Merged
zzcgumn merged 1 commit into
dds-bridge:developfrom
BSalita:fix/dds-native-vcxproj-parallel-boards
Jul 3, 2026
Merged

solution: add missing parallel_boards.cpp/.hpp to VS projects#222
zzcgumn merged 1 commit into
dds-bridge:developfrom
BSalita:fix/dds-native-vcxproj-parallel-boards

Conversation

@BSalita

@BSalita BSalita commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

As noted in #139, dds_native.dll fails to link out of the box on Windows: calc_tables.cpp and solve_board.cpp reference resolve_worker_count / parallel_all_boards_n from library/src/system/parallel_boards.cpp, but neither solution/dds_native.vcxproj nor solution/DDS.vcxproj compiles that file, producing unresolved externals (for the static library, the errors surface when linking consuming executables such as the example projects).

This PR adds parallel_boards.cpp to the <ClCompile> lists of both projects, and parallel_boards.hpp to the <ClInclude> lists and the .filters files, matching how the other library/src/system/ sources are registered.

Note: the same fix is needed on the PR #216 branch, whose dds_native.vcxproj has the same omission.

Testing

On Windows 11 with MSVC v143 (VS 2022), from a clean checkout of develop (5cb0fb1) plus this change:

  • msbuild solution\dds_native.vcxproj /p:Configuration=Release /p:Platform=x64 links successfully (previously failed with LNK2019 unresolved externals).
  • msbuild solution\DDS.vcxproj, then hands.vcxproj and calc_all_tables.vcxproj, all build and link successfully.
  • The resulting dds_native.dll was used in the three-way benchmark/correctness comparison reported in Merge DDSS into DDS V3 #139 (agrees with DDS 2.9 and ddss on all 20,000 table cells over 1000 deals).

calc_tables.cpp and solve_board.cpp reference resolve_worker_count and
parallel_all_boards_n from system/parallel_boards.cpp, but neither
dds_native.vcxproj nor DDS.vcxproj compiles that file, so dds_native.dll
fails to link with unresolved externals (and executables consuming the
DDS static library fail the same way).

Add the .cpp to both projects, and the .hpp to the header lists and
filters files for consistency with the other system/ sources.

Co-authored-by: Cursor <cursoragent@cursor.com>
@BSalita BSalita mentioned this pull request Jul 2, 2026
@zzcgumn zzcgumn merged commit 5159b25 into dds-bridge:develop Jul 3, 2026
7 checks passed
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