hi i am using eclipse ide for c++ and i have file.a and i want to do linkage to this file how i do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.