> When building an executable on Linux I'd like to link statically a particular library, namely Boost Serialization, while keeping the other libraries linked dynamically. Both libboost_serialization.a and libboost_serialization.so exist. I tried to play with the -l parameter, passing the actual file name or including the full path, but these didn't help. Hmm... passing the full name works for me - how are you passing this option? For example, to statically link against libmylib.a instead of libmylib.so, when both are present, instead of: gcc -lmylib I do: gcc -l:libmylib.a With `-l', the colon and then the full file name, and it works for me. If this doesn't help, could you show us the full command-line where you specify the name of the library? John G