Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » got "cannot find -lxxx" error in Windows platform while linking shared library
got "cannot find -lxxx" error in Windows platform while linking shared library [message #671507] Wed, 18 May 2011 07:21 Go to next message
facat  is currently offline facat Friend
Messages: 4
Registered: May 2011
Junior Member
I wanted to link a shared library in my project, but i encountered the "ld.exe: cannot find -lxxx" error. xxx was the name of my shared library.
I haved added the path of my shared library to Library search path in MingW C++ Linker->Libraries.
Did any one successfully link a shared library in the Windows platform?
Re: got "cannot find -lxxx" error in Windows platform while linking shared library [message #671573 is a reply to message #671507] Wed, 18 May 2011 11:27 Go to previous messageGo to next message
Andrey Kourskov is currently offline Andrey KourskovFriend
Messages: 54
Registered: July 2009
Member
Can you share the shring in Project Properties -> C/C++ Build ->Settings ->Tool Settings -> MingW C++ Linker -> All options?
Re: got "cannot find -lxxx" error in Windows platform while linking shared library [message #671668 is a reply to message #671573] Wed, 18 May 2011 16:13 Go to previous messageGo to next message
facat  is currently offline facat Friend
Messages: 4
Registered: May 2011
Junior Member
Andrey Kourskov wrote on Wed, 18 May 2011 07:27
Can you share the shring in Project Properties -> C/C++ Build ->Settings ->Tool Settings -> MingW C++ Linker -> All options?

yes.
All option:
-L"E:\Program\MyPro\EC_Shared\Debug"
Re: got "cannot find -lxxx" error in Windows platform while linking shared library [message #671678 is a reply to message #671668] Wed, 18 May 2011 16:33 Go to previous messageGo to next message
Andrey Kourskov is currently offline Andrey KourskovFriend
Messages: 54
Registered: July 2009
Member
Probably you wrote the wrong library name.
If your shared library name is libmylib.a you have to write mylib.
Re: got "cannot find -lxxx" error in Windows platform while linking shared library [message #671689 is a reply to message #671678] Wed, 18 May 2011 17:17 Go to previous messageGo to next message
facat  is currently offline facat Friend
Messages: 4
Registered: May 2011
Junior Member
Andrey Kourskov wrote on Wed, 18 May 2011 12:33
Probably you wrote the wrong library name.
If your shared library name is libmylib.a you have to write mylib.

I omitted the prefix lib.
Re: got "cannot find -lxxx" error in Windows platform while linking shared library [message #671694 is a reply to message #671689] Wed, 18 May 2011 17:34 Go to previous message
facat  is currently offline facat Friend
Messages: 4
Registered: May 2011
Junior Member
Somehow it's ok. I just create a new shared lib project. thks.
Previous Topic:New to eclipse...Help!
Next Topic:Make choking on linked resource
Goto Forum:
  


Current Time: Fri Mar 29 04:47:40 GMT 2024

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

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

Back to the top