How to add a library to an Eclipse project

前端 未结 3 462
我在风中等你
我在风中等你 2020-11-27 07:45

I\'m trying to add a Library to Eclipse Galileo and it won\'t work out.

Library: gdi32.lib -> In MinGW: libgdi32.a

Whatever I try, it doesn\'t work. Can anyo

相关标签:
3条回答
  • 2020-11-27 08:13

    I have the similar problem. As Mark suggested, in project->properties->C++ Build->Settings, we have to add

    1) library name (for eg: libsnap7.so, only snap7 is the name) 2) library path (eg: /usr/lib)

    Problem remained unsolved till I do this.

    0 讨论(0)
  • 2020-11-27 08:15

    If on eclipse 3.5 the place to add is project->properties->C++ Build->Settings Then choose the tool chain you are using then in Libraries and add the library name to the top box and the path to the bottom

    0 讨论(0)
  • 2020-11-27 08:17

    right click to project -> Properties -> C/C++ Build, go to Library and add it there.

    if the library is libgdi32.a, you should add gdi32 in the library section.

    0 讨论(0)
提交回复
热议问题