Thread: [Dev-C++] LIB files and Dev-C++ (=?koi8-r?B?89TBzsnTzMHXIODEyc4=?=)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Benjamin L. <bl...@gm...> - 2004-10-16 04:11:05
|
No, I doubt it. The GNU ld only accepts .o and .a files it seems. On Fri, 15 Oct 2004 20:19:55 -0700, dev...@li... <dev...@li...> wrote: > Send Dev-cpp-users mailing list submissions to > dev...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body 'help' to > dev...@li... > > You can reach the person managing the list at > dev...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dev-cpp-users digest..." > > Today's Topics: > > 1. LIB files and Dev-C++ (=?koi8-r?B?89TBzsnTzMHXIODEyc4=?=) > > --__--__-- > > Message: 1 > From: =?koi8-r?B?89TBzsnTzMHXIODEyc4=?= <de...@in...> > To: <dev...@li...> > Date: Sat, 16 Oct 2004 00:25:15 +0400 > Subject: [Dev-C++] LIB files and Dev-C++ > > This is a multi-part message in MIME format. > > ------=_NextPart_000_0009_01C4B316.9BC3F660 > Content-Type: text/plain; > charset="koi8-r" > Content-Transfer-Encoding: 7bit > > Hi all! > Can I link my programms with .LIB files in MinGW(and Dev-C++)? > > Regards... > > ------=_NextPart_000_0009_01C4B316.9BC3F660 > Content-Type: text/html; > charset="koi8-r" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META http-equiv=3DContent-Type content=3D"text/html; charset=3Dkoi8-r"> > <META content=3D"MSHTML 6.00.2900.2523" name=3DGENERATOR></HEAD> > <BODY> > <DIV><FONT face=3DArial size=3D2><SPAN class=3D495292320-15102004>Hi=20 > all!</SPAN></FONT></DIV> > <DIV><FONT face=3DArial size=3D2><SPAN class=3D495292320-15102004>Can I = > link my=20 > programms with .LIB files in MinGW(and = > Dev-C++)?</SPAN></FONT></DIV> > <DIV><FONT face=3DArial size=3D2><SPAN=20 > class=3D495292320-15102004></SPAN></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2><SPAN=20 > class=3D495292320-15102004>Regards...</SPAN></FONT></DIV></BODY></HTML> > > ------=_NextPart_000_0009_01C4B316.9BC3F660-- > > --__--__-- > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > End of Dev-cpp-users Digest > |
|
From: Martin O. <li...@mi...> - 2004-10-16 09:20:44
|
There is a tool that converts .lib files into .a files, I dont think this tool is installed with dev-cpp though -- one must download some mingw extra package to get it (dont remember which one though). regards, martin Benjamin Lau wrote: > No, I doubt it. The GNU ld only accepts .o and .a files it seems. > > > On Fri, 15 Oct 2004 20:19:55 -0700, > dev...@li... > <dev...@li...> wrote: > >>Send Dev-cpp-users mailing list submissions to >> dev...@li... >> >>To subscribe or unsubscribe via the World Wide Web, visit >> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >>or, via email, send a message with subject or body 'help' to >> dev...@li... >> >>You can reach the person managing the list at >> dev...@li... >> >>When replying, please edit your Subject line so it is more specific >>than "Re: Contents of Dev-cpp-users digest..." >> >>Today's Topics: >> >> 1. LIB files and Dev-C++ (=?koi8-r?B?89TBzsnTzMHXIODEyc4=?=) >> >>--__--__-- >> >>Message: 1 >>From: =?koi8-r?B?89TBzsnTzMHXIODEyc4=?= <de...@in...> >>To: <dev...@li...> >>Date: Sat, 16 Oct 2004 00:25:15 +0400 >>Subject: [Dev-C++] LIB files and Dev-C++ >> >>This is a multi-part message in MIME format. >> >>------=_NextPart_000_0009_01C4B316.9BC3F660 >>Content-Type: text/plain; >> charset="koi8-r" >>Content-Transfer-Encoding: 7bit >> >>Hi all! >>Can I link my programms with .LIB files in MinGW(and Dev-C++)? >> >>Regards... >> >>------=_NextPart_000_0009_01C4B316.9BC3F660 >>Content-Type: text/html; >> charset="koi8-r" >>Content-Transfer-Encoding: quoted-printable >> >><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> >><HTML><HEAD> >><META http-equiv=3DContent-Type content=3D"text/html; charset=3Dkoi8-r"> >><META content=3D"MSHTML 6.00.2900.2523" name=3DGENERATOR></HEAD> >><BODY> >><DIV><FONT face=3DArial size=3D2><SPAN class=3D495292320-15102004>Hi=20 >>all!</SPAN></FONT></DIV> >><DIV><FONT face=3DArial size=3D2><SPAN class=3D495292320-15102004>Can I = >>link my=20 >>programms with .LIB files in MinGW(and = >>Dev-C++)?</SPAN></FONT></DIV> >><DIV><FONT face=3DArial size=3D2><SPAN=20 >>class=3D495292320-15102004></SPAN></FONT> </DIV> >><DIV><FONT face=3DArial size=3D2><SPAN=20 >>class=3D495292320-15102004>Regards...</SPAN></FONT></DIV></BODY></HTML> >> >>------=_NextPart_000_0009_01C4B316.9BC3F660-- >> >>--__--__-- >> >>_______________________________________________ >>Dev-cpp-users mailing list >>Dev...@li... >>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >> >>End of Dev-cpp-users Digest >> > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Daniel K. O. <dan...@ya...> - 2004-10-16 12:07:43
|
Benjamin Lau wrote: >No, I doubt it. The GNU ld only accepts .o and .a files it seems. > > It also accepts .lib, .dll and even .exe (if you create an executable that exports functions) files. But only if it's a C library; the C++ code generated by g++ and vc++ are incompatible. Daniel K. O. |
|
From: <de...@in...> - 2004-10-17 13:04:48
|
Do I need to pass some magic keys to gcc, or it's just "-L\path\to -llibname"? And yes, It's C library. =20 > -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Daniel K. O. > Sent: Saturday, October 16, 2004 4:08 PM > To: Benjamin Lau > Cc: dev...@li... > Subject: Re: [Dev-C++] LIB files and Dev-C++ = (=F3=D4=C1=CE=C9=D3=CC=C1=D7 =E0=C4=C9=CE) [skip] > It also accepts .lib, .dll and even .exe (if you create an=20 > executable that exports functions) files. But only if it's a=20 > C library; the C++ code generated by g++ and vc++ are incompatible. >=20 >=20 > Daniel K. O. >=20 |
|
From: Daniel K. O. <dan...@ya...> - 2004-10-17 13:53:02
|
Станислав Юдин wrote: >Do I need to pass some magic keys to gcc, or it's just "-L\path\to >-llibname"? > > If the lib is in your lib dir, and is in the format "libwhatever.a", you just need "-lwhatever". For everything else you add the complete path to the file (using the "Add library or object" button). Daniel K. O. |
|
From: Per W. <pw...@ia...> - 2004-10-17 14:00:06
|
If you do -llibname, gcc will look for a file named liblibname.a. If you want to link something else, you can just specify the full file name on the command line, in the same way you supply the object files. /Per W On Sun, 17 Oct 2004, [koi8-r] =F3=D4=C1=CE=C9=D3=CC=C1=D7 =E0=C4=C9=CE wrot= e: > > Do I need to pass some magic keys to gcc, or it's just "-L\path\to > -llibname"? > And yes, It's C library. > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Daniel K. O. > > Sent: Saturday, October 16, 2004 4:08 PM > > To: Benjamin Lau > > Cc: dev...@li... > > Subject: Re: [Dev-C++] LIB files and Dev-C++ (=F3=D4=C1=CE=C9=D3=CC=C1= =D7 =E0=C4=C9=CE) > > [skip] > > > It also accepts .lib, .dll and even .exe (if you create an > > executable that exports functions) files. But only if it's a > > C library; the C++ code generated by g++ and vc++ are incompatible. > > > > > > Daniel K. O. > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out mo= re > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |