Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can also statically link libc++. Not much of a binary size increase from static linking because most is template headers.


> Not much of a binary size increase from static linking because most is template headers.

Unless you use anything that pulls in locale code (e.g. any stream), in which case you will get code for things like date and monetary formatting in your library even if it is never used.


Linkers are pretty good at throwing out dead code, so if you don't reference these functions there's a decent chance they won't be linked in when linking statically.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: