From: Rohith R. <man...@ho...> - 2002-11-04 17:37:19
|
Hi, Ran into a some problems while attempting to compile on sol 2.8 with gcc 3.2. 1. Lots of warnings about files not ending with a newline: Don't know if this is due to some problem with my WinCVS settings or the transfer via ftp from windows to the sol server or a genuine compile warning. BTW, do you know of any solaris client for CVS? Even a command line one will do, since I can write lisp code to make xemacs interface with it. 2. One error about a looser throw in DynamicLibraryManagerException::~DynamicLibraryManagerException than its base class - which I fixed by adding a throw() at the end of the class. What does the throw() at the end of a function say anyway? Just that it throws exceptions? 3. Why does the make install step attempt to install cppunit in /usr/local/lib? In the server I am working on, I don't have permissions to do that. Is it easy to modify the install script and the rest of the codebase to install to and use cppunit from a different location, maybe via a environment variable? Thanks, Rohith. >From: Sven Reichard <rei...@ma...> >To: Rohith Rajagopal <man...@ho...> >Subject: Re: [Cpptool-develop] Hi >Date: Mon, 4 Nov 2002 11:42:33 -0500 (EST) > >On Mon, 4 Nov 2002, Rohith Rajagopal wrote: > > > Hi Sven, > > >I added you to the developers. > > Thank you. > > >Try to get access to the CVS repository via > > >SSH, get the rfta module, and compile it in your favorite environment. > > Yes, I was able to access it using WinCVS. And I've downloaded the >rest > > of the modules as well. I'll try and compile it on sol2.8 with the g++ >3.2 > > compiler. Since you've already compiled it in Linux, hopefully I won't >run > > into too many problems with this. > > BTW, what are the rest of the modules? CppRefactory and cpptool >modules, > > I mean. Should I be downloading those too? > >These were previous attempts. Just get rfta. Then go to deplibs/cppunit, >configure and make install (unless you already have CppUnit 1.9.10 >installed). You also need the boost library (just the header files; we use >some of their template classes). Then a ./configure; make check in the >main directory should work. _________________________________________________________________ Surf the Web without missing calls! Get MSN Broadband. http://resourcecenter.msn.com/access/plans/freeactivation.asp |
From: Sven R. <rei...@ma...> - 2002-11-04 17:59:26
|
On Mon, 4 Nov 2002, Rohith Rajagopal wrote: > Hi, > Ran into a some problems while attempting to compile on sol 2.8 with= gcc=20 > 3.2. > 1. Lots of warnings about files not ending with a newline: Don't know i= f=20 > this is due to some problem with my WinCVS settings or the transfer via= ftp=20 > from windows to the sol server or a genuine compile warning. =20 This is genuine. VC++ by default adds a line like # endif // myfile_h_include at the end of the file, w/o a newline. I added newlines to some of the=20 files, but not all of them. When you run into that, feel free to change=20 it. > BTW, do you=20 > know of any solaris client for CVS? Even a command line one will do, si= nce I=20 > can write lisp code to make xemacs interface with it. Try which cvs which ssh If both are there, just export CVS_RSH=3Dssh and then use cvs as usual. If not they should be available in source code= ,=20 e.g., from the FSF. Usually, xemacs has a built-in interface to it; not=20 sure how to make it work w/ ssh though. =20 > 2. One error about a looser throw in=20 > DynamicLibraryManagerException::~DynamicLibraryManagerException than it= s=20 > base class - which I fixed by adding a throw() at the end of the class.= What=20 > does the throw() at the end of a function say anyway? Just that it thro= ws=20 > exceptions? Actually, it says that it doesn't throw any exceptions. A subclass can't=20 throw more exceptions than the parent class, and=20 std::exception::~exception() doesn't throw any. Hence, our destructor=20 can't neither. In general, throw(ex1, ex2, .., exn) says that it throws=20 only the exceptions given in the list, which in our case is empty. I thought I changed that (since it compiles for me). =20 > 3. Why does the make install step attempt to install cppunit in=20 > /usr/local/lib? In the server I am working on, I don't have permissions= to=20 > do that. Is it easy to modify the install script and the rest of the=20 > codebase to install to and use cppunit from a different location, maybe= via=20 > a environment variable? Call configure as ./configure --prefix=3D<home> where <home> is your home directory. Then make install. This puts=20 everything in $(HOME)/lib, $(HOME)/include, etc. I think that=20 --prefix=3D$(HOME) doesn't work, so write out the full path. Sven. > Thanks, > Rohith. >=20 > >From: Sven Reichard <rei...@ma...> > >To: Rohith Rajagopal <man...@ho...> > >Subject: Re: [Cpptool-develop] Hi > >Date: Mon, 4 Nov 2002 11:42:33 -0500 (EST) > > > >On Mon, 4 Nov 2002, Rohith Rajagopal wrote: > > > > > Hi Sven, > > > >I added you to the developers. > > > Thank you. > > > >Try to get access to the CVS repository via > > > >SSH, get the rfta module, and compile it in your favorite environm= ent. > > > Yes, I was able to access it using WinCVS. And I've downloaded = the=20 > >rest > > > of the modules as well. I'll try and compile it on sol2.8 with the = g++=20 > >3.2 > > > compiler. Since you've already compiled it in Linux, hopefully I wo= n't=20 > >run > > > into too many problems with this. > > > BTW, what are the rest of the modules? CppRefactory and cpptool= =20 > >modules, > > > I mean. Should I be downloading those too? > > > >These were previous attempts. Just get rfta. Then go to deplibs/cppuni= t, > >configure and make install (unless you already have CppUnit 1.9.10 > >installed). You also need the boost library (just the header files; we= use > >some of their template classes). Then a ./configure; make check in the > >main directory should work. >=20 >=20 > _________________________________________________________________ > Surf the Web without missing calls!=A0Get MSN Broadband. =20 > http://resourcecenter.msn.com/access/plans/freeactivation.asp >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: ApacheCon, November 18-21 in > Las Vegas (supported by COMDEX), the only Apache event to be > fully supported by the ASF. http://www.apachecon.com > _______________________________________________ > Cpptool-develop mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cpptool-develop >=20 --=20 Sven Reichard Dept. of Math. Sci. University of Delaware rei...@ma... |
From: Sven R. <rei...@ma...> - 2002-11-04 18:08:19
|
One more thing: To keep the sources and the object files separated, I recommend the following: From the main directory mkdir build cd build ../configure --prefix=<home> make check This will build everything inside the "build" directory, and you won't accidentally check in .o files. Sven. -- Sven Reichard Dept. of Math. Sci. University of Delaware rei...@ma... |
From: Baptiste L. <gai...@fr...> - 2002-11-04 19:20:18
|
Well, actually it's not VC++ but my code template. I'm using Workspace Whiz to generate new classes and unit tests (http://workspacewhiz.com/) using the template that can be found in src/RftaWorking.WWTpl . It's just that the last new line was not generated (should be fixed for future classes). The standard say that included file should end with a new line and that's why there is a warning. Unfortunately, VC++ 6 won't report those :-( Baptiste. ----- Original Message ----- From: "Sven Reichard" <rei...@ma...> To: "CppTool Mailing List" <Cpp...@li...> Sent: Monday, November 04, 2002 6:59 PM Subject: [Cpptool-develop] Attempting to compile on Solaris On Mon, 4 Nov 2002, Rohith Rajagopal wrote: > Hi, > Ran into a some problems while attempting to compile on sol 2.8 with gcc > 3.2. > 1. Lots of warnings about files not ending with a newline: Don't know if > this is due to some problem with my WinCVS settings or the transfer via ftp > from windows to the sol server or a genuine compile warning. This is genuine. VC++ by default adds a line like # endif // myfile_h_include at the end of the file, w/o a newline. I added newlines to some of the files, but not all of them. When you run into that, feel free to change it. > BTW, do you > know of any solaris client for CVS? Even a command line one will do, since I > can write lisp code to make xemacs interface with it. Try which cvs which ssh If both are there, just export CVS_RSH=ssh and then use cvs as usual. If not they should be available in source code, e.g., from the FSF. Usually, xemacs has a built-in interface to it; not sure how to make it work w/ ssh though. > 2. One error about a looser throw in > DynamicLibraryManagerException::~DynamicLibraryManagerException than its > base class - which I fixed by adding a throw() at the end of the class. What > does the throw() at the end of a function say anyway? Just that it throws > exceptions? Actually, it says that it doesn't throw any exceptions. A subclass can't throw more exceptions than the parent class, and std::exception::~exception() doesn't throw any. Hence, our destructor can't neither. In general, throw(ex1, ex2, .., exn) says that it throws only the exceptions given in the list, which in our case is empty. I thought I changed that (since it compiles for me). > 3. Why does the make install step attempt to install cppunit in > /usr/local/lib? In the server I am working on, I don't have permissions to > do that. Is it easy to modify the install script and the rest of the > codebase to install to and use cppunit from a different location, maybe via > a environment variable? Call configure as ./configure --prefix=<home> where <home> is your home directory. Then make install. This puts everything in $(HOME)/lib, $(HOME)/include, etc. I think that --prefix=$(HOME) doesn't work, so write out the full path. Sven. > Thanks, > Rohith. [...] |
From: Baptiste L. <gai...@fr...> - 2002-11-04 19:13:06
|
----- Original Message ----- From: "Rohith Rajagopal" <man...@ho...> To: <rei...@ma...>; <cpp...@li...> Sent: Monday, November 04, 2002 6:37 PM Subject: [Cpptool-develop] Attempting to compile on Solaris > Hi, > Ran into a some problems while attempting to compile on sol 2.8 with gcc > 3.2. [...] > 2. One error about a looser throw in > DynamicLibraryManagerException::~DynamicLibraryManagerException than its > base class - which I fixed by adding a throw() at the end of the class. What > does the throw() at the end of a function say anyway? Just that it throws > exceptions? Where did you had the throw() exactly ? This is a CppUnit portability issue that I need to fix in the CppUnit project tree. Did you add the destructor ? > 3. Why does the make install step attempt to install cppunit in > /usr/local/lib? In the server I am working on, I don't have permissions to > do that. Is it easy to modify the install script and the rest of the > codebase to install to and use cppunit from a different location, maybe via > a environment variable? Hmm, This is a copy of CppUnit 1.9.10 tarball (without some of the example and GUI testrunners). On Windows, this is used so that it can compile nearly 'out of the box' (you still need to install boost, though). The building of the CppUnit library is integrated with the VC++ projects. Can't this be done on Unix (installing the lib localy in the build/ dir and using it from there) ? Baptiste. > > Thanks, > Rohith. > > >From: Sven Reichard <rei...@ma...> > >To: Rohith Rajagopal <man...@ho...> > >Subject: Re: [Cpptool-develop] Hi > >Date: Mon, 4 Nov 2002 11:42:33 -0500 (EST) > > > >On Mon, 4 Nov 2002, Rohith Rajagopal wrote: > > > > > Hi Sven, > > > >I added you to the developers. > > > Thank you. > > > >Try to get access to the CVS repository via > > > >SSH, get the rfta module, and compile it in your favorite environment. > > > Yes, I was able to access it using WinCVS. And I've downloaded the > >rest > > > of the modules as well. I'll try and compile it on sol2.8 with the g++ > >3.2 > > > compiler. Since you've already compiled it in Linux, hopefully I won't > >run > > > into too many problems with this. > > > BTW, what are the rest of the modules? CppRefactory and cpptool > >modules, > > > I mean. Should I be downloading those too? > > > >These were previous attempts. Just get rfta. Then go to deplibs/cppunit, > >configure and make install (unless you already have CppUnit 1.9.10 > >installed). You also need the boost library (just the header files; we use > >some of their template classes). Then a ./configure; make check in the > >main directory should work. |
From: Sven R. <rei...@ma...> - 2002-11-04 19:24:43
|
On Mon, 4 Nov 2002, Baptiste Lepilleur wrote: > > Hmm, This is a copy of CppUnit 1.9.10 tarball (without some of the example > and GUI testrunners). On Windows, this is used so that it can compile nearly > 'out of the box' (you still need to install boost, though). The building of > the CppUnit library is integrated with the VC++ projects. Can't this be done > on Unix (installing the lib localy in the build/ dir and using it from > there) ? > > Baptiste. I'm not exactly sure you can do this with shared libraries (i.e., dll's). You can certainly do this with the static libraries. I'll update the makefiles as soon as I have solved my current computer problems (installing a hardware modem to have internet access under Linux). Sven. -- Sven Reichard Dept. of Math. Sci. University of Delaware rei...@ma... |