Skip to content

Comments

fix: mark NamedPipeServer inline definitions#15

Merged
NewYaroslav merged 3 commits intomainfrom
codex/-odr
Oct 28, 2025
Merged

fix: mark NamedPipeServer inline definitions#15
NewYaroslav merged 3 commits intomainfrom
codex/-odr

Conversation

@AnastasiaProkop
Copy link
Collaborator

Summary

  • add inline qualifiers to all NamedPipeServer member definitions in the .ipp
  • allow multiple translation units to include the header without duplicate symbol errors

Testing

  • g++ -std=c++17 -Itests/stubs -Iinclude -pthread -include cstring -c tests/odr/main1.cpp -o tests/odr/main1.o
  • g++ -std=c++17 -Itests/stubs -Iinclude -pthread -include cstring -c tests/odr/main2.cpp -o tests/odr/main2.o
  • g++ -std=c++17 -pthread tests/odr/main1.o tests/odr/main2.o -o tests/odr/odr_test

https://chatgpt.com/codex/tasks/task_e_68ff400619e88328b9165c4e3e810ce2

Add inline qualifiers to NamedPipeServer member implementations in the .ipp file so multiple translation units can include the header without emitting duplicate definitions.
Add a helper script that compiles the ODR reproduction sources and links them together using the stub Windows header.
Add a GitHub Actions job that builds the ODR regression test sources using the helper script so CI catches duplicate-definition regressions.
@NewYaroslav NewYaroslav merged commit 105298a into main Oct 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants