Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

will static compilation break the ABI?

I want to provide a library which will do some regex things, and since either gcc nor clang (correct me if I'm wrong) implements it now, I will use boost for this. But boost breaks its ABI from time to time so my question is:

Is it safe to compile my library with the static compiled version of boost, so that no ABI break will occur in future versions of boost?

like image 996
hellow Avatar asked Mar 16 '26 01:03

hellow


1 Answers

If you compile statically with boost you won't have any ABI problems with future versions, since nothing is called "externally", you also won't be using anything from future versions without recompilation obviously.

I've statically linked with boost for years, mainly for easier deployment, without any problems.

like image 164
Pieter Avatar answered Mar 17 '26 14:03

Pieter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!