[Dev-C++] Re: Dev-cpp-users digest, Vol 1 #940 - 11 msgs
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Monique <ho...@su...> - 2002-08-29 02:48:37
|
----- Original Message ----- From: <dev...@li...> To: <dev...@li...> Sent: Tuesday, August 27, 2002 11:00 AM Subject: Dev-cpp-users digest, Vol 1 #940 - 11 msgs > 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. Adding and creating my own Lib files to Project (Carlos =?iso-8859-1?Q?Garc=EDa?= del Monte) > 2. Re: Adding and creating my own Lib files to Project (Elizabeth Barham) > 3. Upgrading (Wilmar O. Guday) > 4. MySQL++ (Gerardo Enrique Paredes) > 5. Re: 7-ZIP Source code (Carlos =?iso-8859-1?Q?Garc=EDa?= del Monte) > 6. RE: 7-ZIP Source code (Ioannis Vranos) > 7. Re: link and create my own libraries (Carlos =?iso-8859-1?Q?Garc=EDa?= del Monte) > 8. RE: Upgrading (Rob) > 9. [win 2000 , DevCpp Beta 5] Missing resource editor features (Napoleon Ahiable) > 10. Re: Adding my own Lib files to Project (Napoleon Ahiable) > 11. Re: [win 2000 , DevCpp Beta 5] Missing resource editor features (Met...@ao...) > > --__--__-- > > Message: 1 > Date: Mon, 26 Aug 2002 21:13:24 +0200 > From: Carlos =?iso-8859-1?Q?Garc=EDa?= del Monte <cg...@wo...> > To: dev-cpp-users-list <dev...@li...> > Subject: [Dev-C++] Adding and creating my own Lib files to Project > > I don't know if I sent this message to the right direction or not, I post it > again. > > I have a couple of files: > file.h and file.cpp > which I want add to a project, but which I'll want add to other projects, too. > So I think make a library file, libfile.a. > I compile in command line g++ -c file.cpp > Then I do ar -r libfile.a file.o > Then ar -s libfile.a > I copy it to c:\dev-cpp\lib\ > I put in options (either project if it is organized as project or compiler if > simply mainfile.cpp #include "file.cpp") > -lfile, or -llibfile or -libfile or -lfile.a or -llibfile.a, but depending on what > I use I get or it does not find it or undefined references. It happens the same if > I leave libfile in the same directory than the rest of the project (one single > more file, mainfile.cpp). > > What's my error? I mistake binutil? (ar -s = ranlib) > > P.S. - In my computer (windows 2000, Intel III x86 6.5.5), when I type in the > command line ar -pv file it starts beeping continuosly, the command line does not > respond anymore and that continues after it has printed all. I had to restart the > computer. (I didn't proved without v[verbose], but surely it would do the same). > > > > --__--__-- > > Message: 2 > To: "dev-cpp-users-list" <dev...@li...> > Subject: Re: [Dev-C++] Adding and creating my own Lib files to Project > From: Elizabeth Barham <sog...@ya...> > Date: 26 Aug 2002 17:29:47 -0500 > > Carlos =?iso-8859-1?Q?Garc=EDa?= del Monte <cg...@wo...> writes: > > > I have a couple of files: file.h and file.cpp which I want add to a > > project, but which I'll want add to other projects, too. So I think > > make a library file, libfile.a. I compile in command line g++ -c > > file.cpp Then I do ar -r libfile.a file.o Then ar -s libfile.a I copy > > it to c:\dev-cpp\lib\ I put in options (either project if it is > > organized as project or compiler if simply mainfile.cpp #include > > "file.cpp") -lfile, or -llibfile or -libfile or -lfile.a or > > -llibfile.a, but depending on what I use I get or it does not find it > > or undefined references. It happens the same if I leave libfile in the > > same directory than the rest of the project (one single more file, > > mainfile.cpp). > > > > What's my error? I mistake binutil? (ar -s = ranlib) > > It would be -lfile as the linker inserts 'lib' and adds on '.a'. > > You'd need to add in the library directory C:\dev-cpp\lib, however, > for the linker to find it. > > For example, > > g++ -o test test.cpp -LC:\dev-cpp\lib -lfile > > The -L says to look in C:\dev-cpp\lib for the library file > "libfile.a". If the library file is in the same directory, you could > use -L. . > > Elizabeth > > > --__--__-- > > Message: 3 > From: "Wilmar O. Guday" <wo...@sp...> > To: <Dev...@li...> > Date: Tue, 27 Aug 2002 13:14:39 +0800 > Subject: [Dev-C++] Upgrading > > Hi List, > > I currently have Dev-C++ version 4.9.3.0 and just downloaded binaries > devcpp4950.exe and devcpp4950exe.exe. How to upgrade my existing version. > > TIA/Wilmar > > > > > --__--__-- > > Message: 4 > From: "Gerardo Enrique Paredes" <ge...@mu...> > To: <dev...@li...> > Date: Tue, 27 Aug 2002 00:28:32 -0500 > Subject: [Dev-C++] MySQL++ > > Is anyone aware of libraries for DevCpp that interface with MySQL++??? > > > > --__--__-- > > Message: 5 > Date: Tue, 27 Aug 2002 12:04:33 +0200 > From: Carlos =?iso-8859-1?Q?Garc=EDa?= del Monte <cg...@wo...> > To: Louis Godio <lg...@ya...>, > dev-cpp-users-list <dev...@li...> > Subject: Re: [Dev-C++] 7-ZIP Source code > > PowerArchiver www.powerarchiver.com > > > > > Do you know where can I get a program to unZIP .tar.bz2 files ? > > > > --__--__-- > > Message: 6 > From: "Ioannis Vranos" <no...@ho...> > To: "'dev-cpp-users-list'" <dev...@li...> > Subject: RE: [Dev-C++] 7-ZIP Source code > Date: Tue, 27 Aug 2002 13:20:45 +0300 > > Or 7-Zip mentioned already in the subject. :) > > > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.cjb.net > * Alternative URL: http://run.to/noicys > > > > -----Original Message----- > > From: dev...@li...=20 > > [mailto:dev...@li...] On Behalf=20 > > Of Carlos Garc=EDa del Monte > > Sent: Tuesday, August 27, 2002 1:05 PM > > To: Louis Godio; dev-cpp-users-list > > Subject: Re: [Dev-C++] 7-ZIP Source code > >=20 > >=20 > > PowerArchiver www.powerarchiver.com > >=20 > > > > > > Do you know where can I get a program to unZIP .tar.bz2 files ? > >=20 > >=20 > >=20 > > ------------------------------------------------------- > > This sf.net email is sponsored by: OSDN - Tired of that same old > > cell phone? Get a new here for FREE! > > https://www.inphonic.com/r.asp?r=3Dsourceforge1&refcode1=3Dvs3390 > > _______________________________________________ > > 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 > >=20 > > > --__--__-- > > Message: 7 > Date: Tue, 27 Aug 2002 12:28:49 +0200 > From: Carlos =?iso-8859-1?Q?Garc=EDa?= del Monte <cg...@wo...> > To: dev-cpp-users-list <dev...@li...> > Subject: [Dev-C++] Re: link and create my own libraries > > Thanks, I did what you say, but it does not work. > This is what I get: undefined reference to all the functions that are > used in the main source file. > Perhaps I am wrong in respect to the process of building the a file and > I am being idiot. There is some site where I can see if there is > something special for write static libraries? In the Bruce Eckel's > "Thinking in C++" it is suggested that simply do what I do, take the .o > files, give them to librarian and passing it to the lib dir and the h to > the include dir, just what I do. > > d:\devpro\newf\containtry.o: In function `main': > //d/devpro/newf/containtry.cpp:16: undefined reference to > `container<int>::container(void)' > //d/devpro/newf/containtry.cpp:16: undefined reference to > `container<int>::~container(void)' > //d/devpro/newf/containtry.cpp:19: undefined reference to > `container<int>::addcontainer(int)' > //d/devpro/newf/containtry.cpp:44: undefined reference to > `container<int>::operator[](int)' > //d/devpro/newf/containtry.cpp:53: undefined reference to > `container<int>::killcontainer(void)' > //d/devpro/newf/containtry.cpp:56: undefined reference to > `container<int>::~container(void)' > > If I make #include <container.cpp> then it works perfectly. > > > > --__--__-- > > Message: 8 > From: "Rob" <ro...@us...> > To: "Dev-Cpp-Users@Lists. Sourceforge. Net" <dev...@li...> > Subject: RE: [Dev-C++] Upgrading > Date: Tue, 27 Aug 2002 07:53:21 -0500 > > I trust someone will correct if I'm mistaken, but you should be able to > uninstall 4.9.3.0 and then install the new version immediately afterward > without expected problems. > > Rob > http://uselesspython.com > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...]On Behalf Of Wilmar O. > > Guday > > Sent: Tuesday, August 27, 2002 12:15 AM > > To: Dev...@li... > > Subject: [Dev-C++] Upgrading > > > > > > Hi List, > > > > I currently have Dev-C++ version 4.9.3.0 and just downloaded binaries > > devcpp4950.exe and devcpp4950exe.exe. How to upgrade my existing version. > > > > TIA/Wilmar > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: OSDN - Tired of that same old > > cell phone? Get a new here for FREE! > > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > > _______________________________________________ > > 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 > > > > > > > --__--__-- > > Message: 9 > From: "Napoleon Ahiable" <nah...@so...> > To: <dev...@li...> > Date: Tue, 27 Aug 2002 14:55:42 +0100 > Subject: [Dev-C++] [win 2000 , DevCpp Beta 5] Missing resource editor features > > This is a multi-part message in MIME format. > > ------=_NextPart_000_0017_01C24DD9.D0EB2AB0 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > Hello, > It just hit me that some features of the the resource editor of DevCpp = > ver 4 are missing from the latest DevCpp Beta 5. It came tools required = > including a resource editor which has wizards for creating dialog boxes, = > menus, adding icons and so on. This seems to be missing. The command to = > edit the resource editor brings up a regular edit screen. > > Was this an oversight or delibrate ? > > Napoleon. > > ------=_NextPart_000_0017_01C24DD9.D0EB2AB0 > Content-Type: text/html; > charset="iso-8859-1" > 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=3Diso-8859-1"> > <META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=3D#ffffff> > <DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>It just hit me that some features of = > the the=20 > resource editor of DevCpp ver 4 are missing from the latest DevCpp Beta = > 5.=20 > It came tools required including a resource editor which has = > wizards for=20 > creating dialog boxes, menus, adding icons and so on. This seems to be = > missing.=20 > The command to edit the resource editor brings up a regular edit=20 > screen.</FONT></DIV> > <DIV><FONT face=3DArial size=3D2></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2>Was this an oversight or delibrate = > ?</FONT></DIV> > <DIV><FONT face=3DArial size=3D2></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2>Napoleon.</FONT></DIV></BODY></HTML> > > ------=_NextPart_000_0017_01C24DD9.D0EB2AB0-- > > > > --__--__-- > > Message: 10 > From: "Napoleon Ahiable" <nah...@so...> > To: <dev...@li...> > Subject: Re: [Dev-C++] Adding my own Lib files to Project > Date: Tue, 27 Aug 2002 14:55:46 +0100 > > Hello Elizabeth, > > I have tried your solution without success. I think it's me doing something > wrong so I will elaborate my problem below exactly as it is then may be you > can point me in the right direction. I have 3 main paths I'm dealing with > they are: (1)C:\Projects\Windows, (2)C:\Projects\Windows\Lib, and > (3)C:\Projects\Resources. > > Path 1 contains the files > Main.cpp,Ctrl.cpp,Ctrl.h, View.h. > > Path 2 contains the files > Maker.cpp, Maker.h, Window.h, Procedure.cpp, Procedure.h, Class.cpp, > Class.h, Icon.cpp, Icon.h, Control.h and Canvas.h > > Path 3 contains > Main.Ico, Script.rc, Resource.h > > This is the way I tried to biuld the library. I created a DLL project and > added all the files from path 2 to it as they are. But I get loads of error > messaged when I compile. > > The need to create a personal libary I guess becomes inevitable with time. > as it becomes obvious that certain classes and functions lend themselves to > reuse. If any one can write a little tutorial on how to build such a library > It will be much appreciated. Up untill now I have only written programs with > all the files in one directory but now I feel the need to start writting > libraries. > > Thanks to anyone who will help. > > Napoleon. > > > > > --__--__-- > > Message: 11 > From: Met...@ao... > Date: Tue, 27 Aug 2002 12:37:18 EDT > Subject: Re: [Dev-C++] [win 2000 , DevCpp Beta 5] Missing resource editor features > To: dev...@li... > > > --part1_124.15b29027.2a9d04be_boundary > Content-Type: text/plain; charset="US-ASCII" > Content-Transfer-Encoding: 7bit > > Hi Napoleon > > There is a good WYSIWYG resource editor in the LCC-WIN32 package. I use it as > a tool menu entry from DevCpp IDE > > Just download it at : http://www.cs.virginia.edu/~lcc-win32/ > > Kind regards > > -- > > Seb > > --part1_124.15b29027.2a9d04be_boundary > Content-Type: text/html; charset="US-ASCII" > Content-Transfer-Encoding: 7bit > > <HTML><FONT FACE=arial,helvetica><FONT SIZE=2>Hi Napoleon > <BR> > <BR>There is a good WYSIWYG resource editor in the LCC-WIN32 package. I use it as a tool menu entry from DevCpp IDE > <BR> > <BR>Just download it at : http://www.cs.virginia.edu/~lcc-win32/ > <BR> > <BR>Kind regards > <BR> > <BR>-- > <BR> > <BR>Seb</FONT></HTML> > > --part1_124.15b29027.2a9d04be_boundary-- > > > > --__--__-- > > _______________________________________________ > 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 > |