I am sorry! I have googled this a lot and cannot find an answer! It\'s dumb I know.
I cannot link in static libraries(*.a) in eclipse cdt. I listed them all in Pr
Static libraries or archives are just a collection of object files.
Add the archive as Other Objects under C/C++ Build -> Settings -> C++ Linker -> Miscellaneous:
Some folks cry bloody murder over specifying a full pathname. I find it works in practice (unlike theory at times), and its no worse than breaking the path and filename, and then specifying them with -L
and -l
. And did I mention it actually works in practice...