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 am not a C++ programmer but the understanding I have developed is that if the top level application is linked statically against the core C/C++ libraries then all the dependencies should be linked statically as well. Otherwise it can introduce subtle problems e.g., related to exception handling. is that correct? and in that case, are all the deps of piper linked statically to the core C/C++ lib as well?
Can someone explain to me? I understand this code:
is linking piper statically to libgcc and libstdc++. It does NOT cause the deps to be linked statically as well. to do that the CMakeLists.txt of all the deps should have this directive as well.
Also why is static linking above done only in case of Linux? Why not do it on Windows and Mac as well?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I see following code in piper CMakeLists.txt:
I am not a C++ programmer but the understanding I have developed is that if the top level application is linked statically against the core C/C++ libraries then all the dependencies should be linked statically as well. Otherwise it can introduce subtle problems e.g., related to exception handling. is that correct? and in that case, are all the deps of
piper
linked statically to the core C/C++ lib as well?Can someone explain to me? I understand this code:
is linking
piper
statically tolibgcc
andlibstdc++
. It does NOT cause the deps to be linked statically as well. to do that theCMakeLists.txt
of all the deps should have this directive as well.Also why is static linking above done only in case of Linux? Why not do it on Windows and Mac as well?
Beta Was this translation helpful? Give feedback.
All reactions