I'm trying to link with an external library which consists of 22 static library (.a) files. When I use visual studio, I just need to pass down the directory to VS and it will link with the files in the directory. With gcc what I can first think of is,
-LC:\...\directory_of_library -lsth1 -lsth2 -lsth3 ... -lsth22
, which I am trying to find a better way than.
Also, will there be any problems with 'overlinking'? so linking with more libraries than necessary. Or will the compiler smartly ignore the redundant part?