#include doesn't get you any code -- it just gets you function prototypes, defines, et cetera. The code lives in the library, which is why you link to it (static or dynamic at your leisure).