开发者

Import files exists to project eclipse C++ Linux

开发者 https://www.devze.com 2023-03-12 06:36 出处:网络
I am using eclipse to dev my application for linux. I have my library sourcein workspace/mylib/ and the project in workspace/project.

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.

0

精彩评论

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