hi i am using eclipse ide for c++ and i have file.a and i wan开发者_Go百科t to do linkage to this file how i do this?
I assume you let eclipse manage your Makefile. Go to Project -> Properties -> C/C++ Build -> Settings ->Tool settings.
At the top select [All configurations], to make sure that the library linked in all your builds.
In the list select Libraries under the GCC C++ Linker. Add your library there, if your library filename is like lib.a then you need to add here.
Under Library search path you need to add the containing directory of your library.
精彩评论