Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » how to link with .lib files?
how to link with .lib files? [message #146111] Thu, 26 May 2005 11:46 Go to next message
ben is currently offline benFriend
Messages: 22
Registered: July 2009
Junior Member
I am building a windows application using MinGW. I have to link my object
files with .lib static libraries. How do I do that?

ben
Re: how to link with .lib files? [message #146121 is a reply to message #146111] Thu, 26 May 2005 12:06 Go to previous messageGo to next message
Cavit Cahit VURAL is currently offline Cavit Cahit VURALFriend
Messages: 76
Registered: July 2009
Member
ben wrote:
> I am building a windows application using MinGW. I have to link my object
> files with .lib static libraries. How do I do that?
>
> ben

..lib or .a
Libraries in MinGW are named libxxxxxx.a. If you write gcc -lxxxxx.a ,
it will try to link with libxxxx.a

CC Vural
Re: how to link with .lib files? [message #146129 is a reply to message #146121] Thu, 26 May 2005 12:43 Go to previous messageGo to next message
ben is currently offline benFriend
Messages: 22
Registered: July 2009
Junior Member
"Cavit Cahit VURAL" <ccvural@yahoo.com> wrote in message
news:d74ebf$m48$1@news.eclipse.org...
> ben wrote:
> > I am building a windows application using MinGW. I have to link my
object
> > files with .lib static libraries. How do I do that?
> >
> > ben
>
> .lib or .a
> Libraries in MinGW are named libxxxxxx.a. If you write gcc -lxxxxx.a ,
> it will try to link with libxxxx.a
>
> CC Vural

This is my case: I have to link my code against new .lib files that come
with the Platform SDK. How can I do that in eclipse + MinGW?

ben
Re: how to link with .lib files? [message #146146 is a reply to message #146129] Thu, 26 May 2005 13:21 Go to previous messageGo to next message
Cavit Cahit VURAL is currently offline Cavit Cahit VURALFriend
Messages: 76
Registered: July 2009
Member
ben yazmış:
> "Cavit Cahit VURAL" <ccvural@yahoo.com> wrote in message
> news:d74ebf$m48$1@news.eclipse.org...
>
>>ben wrote:
>>
>>>I am building a windows application using MinGW. I have to link my
>
> object
>
>>>files with .lib static libraries. How do I do that?
>>>
>>>ben
>>
>>.lib or .a
>>Libraries in MinGW are named libxxxxxx.a. If you write gcc -lxxxxx.a ,
>>it will try to link with libxxxx.a
>>
>>CC Vural
>
>
> This is my case: I have to link my code against new .lib files that come
> with the Platform SDK. How can I do that in eclipse + MinGW?
>
> ben
>
>

Give a try to obj2coff utility .

CC Vural
Re: how to link with .lib files? [message #146182 is a reply to message #146129] Thu, 26 May 2005 23:27 Go to previous message
Henning Riedel is currently offline Henning RiedelFriend
Messages: 310
Registered: July 2009
Senior Member
Try adding them in managed make projects under Miscelleanous tab on
"Other Objects" with full path


ben wrote:
> "Cavit Cahit VURAL" <ccvural@yahoo.com> wrote in message
> news:d74ebf$m48$1@news.eclipse.org...
>
>>ben wrote:
>>
>>>I am building a windows application using MinGW. I have to link my
>
> object
>
>>>files with .lib static libraries. How do I do that?
>>>
>>>ben
>>
>>.lib or .a
>>Libraries in MinGW are named libxxxxxx.a. If you write gcc -lxxxxx.a ,
>>it will try to link with libxxxx.a
>>
>>CC Vural
>
>
> This is my case: I have to link my code against new .lib files that come
> with the Platform SDK. How can I do that in eclipse + MinGW?
>
> ben
>
>
Previous Topic:Error launching external scanner
Next Topic:unrecognized gdb option '-i'
Goto Forum:
  


Current Time: Fri Aug 23 11:21:39 GMT 2024

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

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

Back to the top