Import files exists to project eclipse C++ Linux
I am using eclipse to dev my application for linux. I have my library source in workspace/mylib/ and the project in workspace/project. In a source of my project i include the relative path of source library file, example: #include "../mylib/foo.h" The problem start when i try build it, in all parts that use library source eclipse shows this error: undefined reference to 'function()'
I think that it is by libr开发者_运维百科ary files don't have in src folder or not link.
Any Idea?
Thanks!
error: undefined reference to 'function()'
Indicates that the linker cannot find the definition of the function()
. Either you have not defined it in your source code Or If you are using a library which defines it, the library is not getting linked.
This or this posts explain what you should do to add external libraries to eclipse.
精彩评论