Skip to content

Fix code issues: namespace comment and Windows DLL export#2

Open
hobostay wants to merge 2 commits intosymisc:mainfrom
hobostay:fix-code-issues
Open

Fix code issues: namespace comment and Windows DLL export#2
hobostay wants to merge 2 commits intosymisc:mainfrom
hobostay:fix-code-issues

Conversation

@hobostay
Copy link
Copy Markdown

@hobostay hobostay commented Apr 3, 2026

Summary

This PR fixes two code issues found in the codebase:

  1. Fix incorrect namespace comment placement in example.cpp

    • The // namespace comment was placed after the printShape function closing brace instead of the actual anonymous namespace closing brace.
    • This has been corrected for better code clarity.
  2. Add Windows shared library symbol export support

    • When building as a shared library on Windows, enable automatic symbol export via CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS.
    • This prevents linker errors when using the library as a DLL on Windows platforms.

Test plan

  • Code compiles successfully
  • Example program runs correctly after changes
  • No functional changes to library behavior

Files changed

  • example.cpp: Fixed namespace comment placement
  • CMakeLists.txt: Added Windows DLL export support

🤖 Generated with Claude Code

Test User and others added 2 commits April 3, 2026 09:04
The `// namespace` comment was placed after the `printShape` function
closing brace instead of the actual anonymous namespace closing brace.
This has been corrected.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When building as a shared library on Windows, enable automatic symbol
export via CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS. This prevents linker
errors when using the library as a DLL on Windows platforms.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant