Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » linux eclipse(eclipse CDT)
linux eclipse [message #778329] Thu, 12 January 2012 12:08 Go to next message
mr cool is currently offline mr coolFriend
Messages: 1
Registered: January 2012
Junior Member
hi i am new to eclipse ,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
1.include(.h files)
2.source(.cpp. files..)
3.lib(libbozorth3.a,LSFMatcher.a)
i want link that static libraries with my application i follow this steps
1->project->properties->general->path and symbols->include directory path,and libraries(bozorth3.a,LSFMatcher.a),and add library path .
2->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.

[Updated on: Thu, 12 January 2012 12:09]

Report message to a moderator

Re: linux eclipse [message #778441 is a reply to message #778329] Thu, 12 January 2012 15:52 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 12-Jan-12 05:08, mr cool wrote:
> hi i am new to eclipse ,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
> 1.include(.h files)
> 2.source(.cpp. files..)
> 3.lib(libbozorth3.a,LSFMatcher.a)
> i want link that static libraries with my application .so i follow this
> steps
> 1->project->properties->general->path and symbols->include directory
> path,and libraries(bozorth3.a,LSFMatcher.a),and add library path .
> 2->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.

Check the sticky posts at the top of the forum for where to ask C/C++
questions.
Previous Topic:Problem accessing /viewer/run. in birt preview
Next Topic:Cant create Python 3.2 interpreter on OSX
Goto Forum:
  


Current Time: Fri Apr 26 23:22:20 GMT 2024

Powered by FUDForum. Page generated in 0.09242 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top