You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This complies successfully but when it attempts to link, the linker complains about multiple definitions of ptc::__print__::mutex_ and ptc::print which makes sense given that I ostensibly #include print.hpp twice, it leads to two instantiations of the mentioned objects. I think this would successfully and simply be resolved by inling the definitions and declarations of those objects.
The text was updated successfully, but these errors were encountered:
MiiKaa3
changed the title
Linking Error: multiple definition of ptc::__print__::mutex_ and ptc::print'
Linking Error: multiple definition of ptc::__print__::mutex_ and ptc::printAug 2, 2022
I was testing ptc::print in this very simple example:
This complies successfully but when it attempts to link, the linker complains about multiple definitions of
ptc::__print__::mutex_
andptc::print
which makes sense given that I ostensibly#include print.hpp
twice, it leads to two instantiations of the mentioned objects. I think this would successfully and simply be resolved by inling the definitions and declarations of those objects.The text was updated successfully, but these errors were encountered: