Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » link library in managed make project
link library in managed make project [message #146816] Mon, 13 June 2005 22:08 Go to next message
Al Mising name is currently offline Al Mising nameFriend
Messages: 123
Registered: July 2009
Senior Member
I am trying to link a managed make project to a prebuilt library, in this
case /usr/lib/libxerces-c.so.25.0

In the Properties -> C/C++ Build -> GCC C++ Linker/ Libraries, I added the
file to Libraries and the path to Library Search Path. This is apparently
insufficient because i get this error:

ld: cannot find -l/usr/lib/libxerces-c.so.25.0

What else do I need to do?
Re: link library in managed make project [message #146831 is a reply to message #146816] Tue, 14 June 2005 08:32 Go to previous messageGo to next message
Andrés Wellmann Jelic is currently offline Andrés Wellmann JelicFriend
Messages: 32
Registered: July 2009
Member
Hi!

What did you write in the property fields??


andrés


Am Tue, 14 Jun 2005 00:08:03 +0200 schrieb Al <allelopath@hotmail.com>:

> I am trying to link a managed make project to a prebuilt library, in
> this case /usr/lib/libxerces-c.so.25.0
>
> In the Properties -> C/C++ Build -> GCC C++ Linker/ Libraries, I added
> the file to Libraries and the path to Library Search Path. This is
> apparently insufficient because i get this error:
>
> ld: cannot find -l/usr/lib/libxerces-c.so.25.0
>
> What else do I need to do?
>
>



--
Erstellt mit Operas
Re: link library in managed make project [message #146845 is a reply to message #146831] Tue, 14 June 2005 14:35 Go to previous messageGo to next message
Al Mising name is currently offline Al Mising nameFriend
Messages: 123
Registered: July 2009
Senior Member
I'm not exactly sure what you mean by "property fields"
I didn't write anything.
I browsed to the file for the Library and to the path for Library Path.


--------------------------------------------------------

Hi!

What did you write in the property fields??


andrés


Am Tue, 14 Jun 2005 00:08:03 +0200 schrieb Al <allelopath@hotmail.com>:

I am trying to link a managed make project to a prebuilt library, in
this case /usr/lib/libxerces-c.so.25.0

In the Properties -> C/C++ Build -> GCC C++ Linker/ Libraries, I added
the file to Libraries and the path to Library Search Path. This is
apparently insufficient because i get this error:

ld: cannot find -l/usr/lib/libxerces-c.so.25.0

What else do I need to do?
Re: link library in managed make project [message #146863 is a reply to message #146845] Wed, 15 June 2005 07:41 Go to previous messageGo to next message
Andrés Wellmann Jelic is currently offline Andrés Wellmann JelicFriend
Messages: 32
Registered: July 2009
Member
ok, i just never used a managed project, so that I cannot help you in this
configuration problem.

i'm sorry
andrés

Am Tue, 14 Jun 2005 16:35:53 +0200 schrieb Al <allelopath@hotmail.com>:

> I'm not exactly sure what you mean by "property fields"
> I didn't write anything. I browsed to the file for the Library and to
> the path for Library Path.
>
>
> --------------------------------------------------------
>
> Hi!
>
> What did you write in the property fields??
>
>
> andrés
>
>
> Am Tue, 14 Jun 2005 00:08:03 +0200 schrieb Al <allelopath@hotmail.com>:
>
> I am trying to link a managed make project to a prebuilt library,
> in this case /usr/lib/libxerces-c.so.25.0
>
> In the Properties -> C/C++ Build -> GCC C++ Linker/ Libraries, I
> added the file to Libraries and the path to Library Search Path. This
> is apparently insufficient because i get this error:
>
> ld: cannot find -l/usr/lib/libxerces-c.so.25.0
>
> What else do I need to do?
>
>
>
>
>



--
Erstellt mit Operas
Re: link library in managed make project [message #146874 is a reply to message #146863] Wed, 15 June 2005 22:14 Go to previous messageGo to next message
Al Mising name is currently offline Al Mising nameFriend
Messages: 123
Registered: July 2009
Senior Member
I can easily switch to a regular make.
Can you tell me how to link that way?
Re: link library in managed make project [message #146878 is a reply to message #146863] Wed, 15 June 2005 22:58 Go to previous messageGo to next message
Al Mising name is currently offline Al Mising nameFriend
Messages: 123
Registered: July 2009
Senior Member
The steps i took result in the linker using these options:
-l/usr/lib/libxerces-c.so.25.0 -L/usr/lib/
Re: link library in managed make project [message #146889 is a reply to message #146878] Thu, 16 June 2005 12:14 Go to previous messageGo to next message
Andrés Wellmann Jelic is currently offline Andrés Wellmann JelicFriend
Messages: 32
Registered: July 2009
Member
You have one error in this line. If you use the "-l" flag you should type
"-lxerces-c". The pre- and suffix is added automatically.

But, what I don't know is wether this versioning number is recognized.
Perhaps you
should first create a symbolic link without the number
(on LINUX via "ln -s libxerces-c.so.25.0 libxerces-c.so")
and then type "-lxerces-c".

The other possibility is to just type "/usr/lib/libxerces-c.so.25.0",
without -l
or -L. This should also work.


andrés

Am Thu, 16 Jun 2005 00:58:28 +0200 schrieb Al <allelopath@hotmail.com>:

> The steps i took result in the linker using these options:
> -l/usr/lib/libxerces-c.so.25.0 -L/usr/lib/
>
>



--
Erstellt mit Operas
Re: link library in managed make project [message #146891 is a reply to message #146889] Thu, 16 June 2005 13:34 Go to previous message
Al Mising name is currently offline Al Mising nameFriend
Messages: 123
Registered: July 2009
Senior Member
>>first create a symbolic link without the number
>>(on LINUX via "ln -s libxerces-c.so.25.0 libxerces-c.so")
>>and then type "-lxerces-c".
do this eliminates the link error.
thanks!
Previous Topic:NooB Question
Next Topic:Slow C/C++ search
Goto Forum:
  


Current Time: Sat Jul 27 18:25:18 GMT 2024

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

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

Back to the top