Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Please Help. Static Library and Managed Project
Please Help. Static Library and Managed Project [message #107206] Tue, 22 June 2004 14:59 Go to next message
Eclipse UserFriend
Originally posted by: edubez.hotmail.com

Hi,

I'm trying to add a static library to a managed project
but I can't to work. I can add it to the project but it
doesn't get linked into the executable

I'm using Eclipse RC2 and CDT 2.0 M9.

Best regards,
Eduardo
Re: Please Help. Static Library and Managed Project [message #107234 is a reply to message #107206] Tue, 22 June 2004 15:29 Go to previous messageGo to next message
Eclipse UserFriend
Eduardo Bezerra wrote:

> Hi,
>
> I'm trying to add a static library to a managed project
> but I can't to work. I can add it to the project but it
> doesn't get linked into the executable
>
> I'm using Eclipse RC2 and CDT 2.0 M9.
>
> Best regards,
> Eduardo
>
>

Add it in the project settings in the linker-section->libraries, and do
not copy it into your project.

If you static lib uses the GCC-convention having a name like:
lib<libraryname>.a, e.g. mylib as libmylib.a
then add the libname (mylib) to the -l list and the path to the -L list.
Otherwise, if your lib is named like mylib.lib, then add mylib.lib in
the additional parameters under Misc.
Re: Please Help. Static Library and Managed Project [message #107246 is a reply to message #107234] Tue, 22 June 2004 17:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: edubez.hotmail.com

kesselhaus wrote:

> Eduardo Bezerra wrote:

> > Hi,
> >
> > I'm trying to add a static library to a managed project
> > but I can't to work. I can add it to the project but it
> > doesn't get linked into the executable
> >
> > I'm using Eclipse RC2 and CDT 2.0 M9.
> >
> > Best regards,
> > Eduardo
> >
> >

> Add it in the project settings in the linker-section->libraries, and do
> not copy it into your project.

> If you static lib uses the GCC-convention having a name like:
> lib<libraryname>.a, e.g. mylib as libmylib.a
> then add the libname (mylib) to the -l list and the path to the -L list.
> Otherwise, if your lib is named like mylib.lib, then add mylib.lib in
> the additional parameters under Misc.

Kesselhaus,

Thank you very much, it worked fine.
I was dealing with this problem about a week without success.
What a relief :^)

Best regards,
Eduardo
Re: Please Help. Static Library and Managed Project [message #143137 is a reply to message #107234] Tue, 12 April 2005 05:43 Go to previous message
Eclipse UserFriend
Originally posted by: matthias_janson.h-p-f.org

Am Tue, 22 Jun 2004 21:29:23 +0200 schrieb kesselhaus:

> Eduardo Bezerra wrote:
>
>> Hi,
>>
>> I'm trying to add a static library to a managed project
>> but I can't to work. I can add it to the project but it
>> doesn't get linked into the executable
>>
>> I'm using Eclipse RC2 and CDT 2.0 M9.
>>
>> Best regards,
>> Eduardo
>>
>>
>
> Add it in the project settings in the linker-section->libraries, and do
> not copy it into your project.
>
> If you static lib uses the GCC-convention having a name like:
> lib<libraryname>.a, e.g. mylib as libmylib.a
> then add the libname (mylib) to the -l list and the path to the -L list.
> Otherwise, if your lib is named like mylib.lib, then add mylib.lib in
> the additional parameters under Misc.

i have the same problem :(
my lib uses the naming convention libXXX.a, i added my lib to the -l list,
and the path of my lib to the -L list, but i doesn't work, do you have an
idea, where the error could lie ??
Previous Topic:Compile one single file?
Next Topic:Feature Request: An option for compiler discovery in managed make
Goto Forum:
  


Current Time: Wed Jul 16 16:01:00 EDT 2025

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

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

Back to the top