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
I have a project in which Python uses static C++ libraries. How do I include backward in the project? Do I have to include it in each CMake file for each library? An example would be great.
Thanks
The text was updated successfully, but these errors were encountered:
You can build a single static libraries of backward-cpp and make sure you initialize it only once by linking all your lib togethers. Be wary that redirecting unix signals might not play along very well with python. You might want to test that carefully.
As long as you link everything together at once, you will have a single copy of the code statically shared. Note backward-cpp is in fact header only, and with modern LTO (link time optimization) I suspect there is not much to fiddle with. Only the piece of code that register signals handlers must run only once. And even if it where to run more than once, at the end of the day, this would still achieve the same effect because signals are process global anyway.
Hi,
I have a project in which Python uses static C++ libraries. How do I include backward in the project? Do I have to include it in each CMake file for each library? An example would be great.
Thanks
The text was updated successfully, but these errors were encountered: