开发者

linkage .a in eclipse

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜