I was wondering if someone here can explain to me why a program that I wrote runs significantly slower when I link parts of the code as a static library instead of directly including the code in the project?
I assumed that function calls are resolved at compile time in both cases, so it really shouldn't matter if the code is right inside the project or in a separate static library file, or am I wrong?
Now that it's been pointed out that a *.so is a shared library, not static, does it make sense to you? The majority of the work of linking is not done at compile time, but at loadtime or runtime.