Now I am using eclipse CDT for my C/C++ Application, but there is problem when I link my external library, it could not be loaded properly at run time, even through I put the library file near the source file, I gave the library path, and it's name correctly.
project directory:
- include(.h files)
- source(.cpp. files..)
- lib(libbozorth3.a,LSFMatcher.a)
I want link that static libraries with my application I follow this steps:
- project->properties->general->path and symbols->include directory path,and libraries(bozorth3.a,LSFMatcher.a),and add library path .
- and also i add the same library in linker section also
When I build the program it displays a error
cannot find -lbozorth3.a
cannot find -lLSFMatcher.a
So I need the correct steps to add the external library to c/c++ application.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…