Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Boost - "static" vs "shared" libraries

I am building "boost" libraries from boost source code and I have two options: to build it "static" or to build it "shared" (e.g. dynamic). Which is better idea?

I prefer dynamic (shared) linking but when I tried to build boost shared libraries (on Ubuntu Linux), I got lots of errors or warnings (why there are always errors, warning, notes and other stuff when compiling, grrrrrrrr), so I don't know if it was compiled alright?

Thanks.

like image 936
Petike Avatar asked Dec 06 '22 05:12

Petike


1 Answers

Better is subjective. Shared cuts down on size, at the risk of dependencies. Static solves dependency issues but increases the size.

For your purposes, I'd say building it in which ever way gets you to code faster is the better solution.

like image 117
Alan Avatar answered Dec 08 '22 00:12

Alan