Static library symbols not being found even with -l
问题 I have a static library, liborc-0.4.a with no shared library. I have another library, libschroedinger-1.0.a (no shared) that depends on symbols in liborc-0.4.a. If I run nm on liborc-0.4.a, symbols such as orc_init show up as T (meaning they are defined). I built libschroedinger-1.0.a with the command line flag -lorc-0.4 so it saw the symbols and was ok. However, now I have a small executable that depends on libschroedinger-1.0.a. It compiles fine, but when I run the linker gcc -lschroedinger