From: <jc...@fe...> - 2002-12-04 15:51:27
|
On Wednesday 04 December 2002 00:57, Joao Cardoso wrote: | On Tuesday 03 December 2002 14:39, you wrote: | > Joao, | > I have replied directly to you rather than the list, feel free | > to post on the list.... | | I will, this issue might concern other users. | | > Joao Cardoso wrote: | > >On Monday 02 December 2002 21:03, David Armstrong wrote: | > >>I have a (modified) Red Hat 7.3 system I am trying to install | > >> Plplot on. I have Octave 2.1.40 and have compiled it with | > >> --enable-dl and --enable-shared. I have configured PlPlot with | > >> --eanble-octave. When I try to compile Plplot it generates many | > >> errors in the plplot_octave.cc file. Below is the beginning of | > >> the error message stream. I am using gcc 3.2 and I have | > >> installed matwrap. Anyone have any idea what is going on here? | > > | > >Nope. I only tried Octave-2.1.36 and gcc-2.95.3. | > > | > >I know that Octave has suffered some significative changes since | > > version 2.1.38. Do you have to use 2.1.40? If you could try | > > 2.1.36 with gcc-3.2 it could help. | > | > OK, octave 2.1.36 with gcc 3.2 it is! | > | > Octave 2.1.36 fails to compile with gcc 3.2. The error messages | > are below. | > | > g++ -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc=20 | > -I../glob | | ... | | > make: *** [all] Error 2 | > | > So to summarize: | > | > Octave 2.1.40 compiles with gcc 3.2 but plplot 5.10 does not. | | Yes, I know, I have compiled gcc-3.2.1 myself and plplot_octave (not | plplot) | | does not compile. It looks like that class vector string is missing: The problem has a simple solution, just type the following in the plplot=20 'tmp' directory when "make" gives the error: sed 's/ string / std::string /' plplot_octave.cc > po mv po plplot_octave.cc Don't forget the spaces in the sed command, just copy/paste the above and then resume the make. I have done it with the current cvs tree and=20 plplot_octave compiled and runs OK. However, you will find that plplot_octave gives some warnings with=20 octave-2.1.40. Thanks, Joao |