From: Thomas M. H. <tm...@gf...> - 2006-06-19 12:19:38
|
On fre, 2006-06-16 at 14:20 -0700, nico remy wrote: > Thanks for pointing out the bad link on the web site.=20 > About the error, you must change: > p_values_.erase() > to > p_values_.clear() > on line 159 of file GsTL/cdf/non_param_cdf.h > It is changed on CVS, but I forgot to replace the release.=20 I did apply the change that you suggest(ed), and the compiling process failed as indicated below (from my previous mail). I also tried to use the CVS version of GsTL, with the same compiling error as a result. The change probably also applies to line 159 of GsTL/cdf/non_param_pdf.h ? If I apply the 'erase'-'clear' update also in line 159 of GsTL/cdf/non_param_pdf.h (not ....cdf.h) and if I use '-fpermissive' as an option for g++ (as suggested by the warnings/error info of g++) the compile process finishes in the 'GsTLAppli/geostat/' directory, but fails in 'GsTLAppli/extra/qwt' " g++ -c -pipe -Wall -W -g -D_REENTRANT -fPIC -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I. -I../../../../GsTL -I../../../../SGeMS-1.4.1 -I/usr/include/qt3 -o ../../../lib/linux/obj/qwt_plot.o qwt_plot.cpp qwt_plot_item.h:60: warning: =E2=80=98class QwtPlotItem=E2=80=99 has virt= ual functions but non-virtual destructor qwt_plot_item.h:88: warning: =E2=80=98class QwtPlotMappedItem=E2=80=99 ha= s virtual functions but non-virtual destructor qwt_plot.h:171: error: ISO C++ forbids declaration of =E2=80=98QwtPlotCan= vas=E2=80=99 with no type qwt_plot.h:171: error: expected =E2=80=98;=E2=80=99 before =E2=80=98*=E2=80= =99 token qwt_plot.h:172: error: ISO C++ forbids declaration of =E2=80=98QwtPlotCan= vas=E2=80=99 with no type qwt_plot.h:172: error: expected =E2=80=98;=E2=80=99 before =E2=80=98*=E2=80= =99 token qwt_plot.h:421: error: ISO C++ forbids declaration of =E2=80=98QwtPlotCan= vas=E2=80=99 with no type qwt_plot.h:421: error: expected =E2=80=98;=E2=80=99 before =E2=80=98*=E2=80= =99 token " - Thomas >=20 > Nicolas > =20 >=20 > On 6/14/06, Thomas Mejer Hansen <tm...@gf...> wrote: > On ons, 2006-06-14 at 17:13 -0700, nico remy wrote: > > Hi Thomas, > > > > I think I answered that exact email 5 days ago. Here was the > answer: > I did not receive any email (we have had some mail server > problems over=20 > the weekend, so maybe that's the reason). > =20 > In any case, the problem was that I downloaded GsTL from the > pangea > website (and that version is GsTL-1.1). The link to GsTL > from the top > of http://sgems.sourceforge.net/ is to pangea, while the link > describing > the required libraries is for sourceforge. > =20 > Having downloaded GsTL-1.2.1 the compiling now stops with : > " > make[2]: Entering directory `/home/local/SGeMS- > 1.4.1/GsTLAppli/geostat' > g++ -c -pipe -Wall -W -g -D_REENTRANT > -fPIC -DQT_THREAD_SUPPORT > -DQT_SHARED -DQT_TABLET_SUPPORT > -I/usr/share/qt3/mkspecs/default -I. -I. > -Ifiltersim_std -Isnesim_std -I../../../GsTL-1.2.1=20 > -I../../../SGeMS-1.4.1 -I../../../GsTL-1.2.1 > -I../../../SGeMS-1.4.1 > -I/usr/include/qt3 -o ../../lib/linux/obj/geostat/cokriging.o > cokriging.cpp > In file included from ../../../GsTL-1.2.1/boost/config.hpp:35, > =20 > from ../../../GsTL-1.2.1/boost/random/mersenne_twister.hpp:27, > =20 > from ../../../GsTL-1.2.1/GsTL/math/random_number_generators.h:3= 3, > =20 > from ../../../SGeMS-1.4.1/GsTLAppli/math/random_numbers.h:35, > =20 > from ../../../SGeMS- > 1.4.1/GsTLAppli/grid/grid_model/rgrid.h:41, > =20 > from ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/cartesian_g= rid.h:34, > from cokriging.cpp:39: > ../../../GsTL-1.2.1/boost/config/compiler/gcc.hpp:66:7: > warning:=20 > #warning "Unknown compiler version - please run the configure > tests and > report the results" > ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/grid_property.h:= 269: > warning: unused parameter 'flag_id' > ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/grid_property.h:= 271: > warning: unused parameter 'flag_id' > ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/neighborhood.h:1= 83: > warning: unused parameter 's' > ../../../SGeMS- > 1.4.1/GsTLAppli/grid/grid_model/neighborhood.h:303: > warning: unused parameter 'on' > ../../../SGeMS-1.4.1/GsTLAppli/utils/progress_notifier.h:79: > warning: > unused parameter 'str' > ../../../SGeMS-1.4.1/GsTLAppli/utils/progress_notifier.h:134: > warning:=20 > unused parameter 'str' > ../../../GsTL-1.2.1/GsTL/matrix_library/gstl_tnt_lib.h:28: > warning: > unused parameter 'A' > ../../../GsTL-1.2.1/GsTL/matrix_library/gstl_tnt_lib.h:28: > warning: > unused parameter 'B' > ../../../GsTL- 1.2.1/GsTL/cdf/cdf_basics.h: In instantiation > of > 'Cdf<float>': > ../../../GsTL-1.2.1/GsTL/cdf/gaussian_cdf.h:44: instantiated > from here > ../../../GsTL-1.2.1/GsTL/cdf/cdf_basics.h:15: warning: 'class > Cdf<float>' has virtual functions but non-virtual destructor=20 > ../../../GsTL-1.2.1/GsTL/cdf/non_param_cdf.h: In member > function 'void > Non_param_cdf<LowerTailInterp, MiddleInterp, > UpperTailInterp>::z_set(forward_iterator, forward_iterator)': > ../../../GsTL-1.2.1/GsTL/cdf/non_param_cdf.h:159: error: no > matching=20 > function for call to 'std::vector<double, > std::allocator<double> > >::erase()' > /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c > ++/4.0.3/bits/vector.tcc:110: note: candidates are: typename > std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, > _Alloc>::erase(__gnu_cxx::__normal_iterator<typename > _Alloc::pointer, > std::vector<_Tp, _Alloc> >) [with _Tp =3D double, _Alloc =3D > std::allocator<double>]=20 > /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c > ++/4.0.3/bits/vector.tcc:122: note: typename > std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, > _Alloc>::erase(__gnu_cxx::__normal_iterator<typename > _Alloc::pointer,=20 > std::vector<_Tp, _Alloc> >, > __gnu_cxx::__normal_iterator<typename > _Alloc::pointer, std::vector<_Tp, _Alloc> >) [with _Tp =3D > double, _Alloc > =3D std::allocator<double>] > ../../../SGeMS-1.4.1 /GsTLAppli/utils/directory.h: At global > scope: > ../../../SGeMS-1.4.1/GsTLAppli/utils/directory.h:45: warning: > unused > parameter 'type_name' > ../../../SGeMS-1.4.1/GsTLAppli/utils/directory.h:45: warning: > unused > parameter 'name'=20 > ../../../SGeMS-1.4.1/GsTLAppli/utils/directory.h:45: warning: > unused > parameter 'final_name' > ../../../SGeMS-1.4.1/GsTLAppli/utils/directory.h:47: warning: > unused > parameter 'name' > ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/rgrid.h:103: > warning:=20 > unused parameter 'P' > ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/point_set.h:96: > warning: > unused parameter 'region_name' > ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/point_set.h:99: > warning: > unused parameter 'region_name'=20 > ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/point_set.h:108:= warning: > unused parameter 'region_name' > ../../../SGeMS-1.4.1/GsTLAppli/grid/grid_model/point_set.h:153:= warning: > unused parameter 'P' > ../../../GsTL- 1.2.1/GsTL/kriging/covariance_set.h: In > instantiation of > 'Covariance_set_impl<Covariance<GsTLTripletTmpl<float> > >': > ../../../GsTL-1.2.1/GsTL/kriging/covariance_set.h:49: > instantiated > from 'Covariance_set<Covariance_>::~Covariance_set() [with > Covariance_ =3D=20 > Covariance<GsTLTripletTmpl<float> >]' > cokriging.cpp:69: instantiated from here > ../../../GsTL-1.2.1/GsTL/kriging/covariance_set.h:10: warning: > 'class > Covariance_set_impl<Covariance<GsTLTripletTmpl<float> > >' has > virtual=20 > functions but non-virtual destructor > make[2]: *** [../../lib/linux/obj/geostat/cokriging.o] Error 1 > make[2]: Leaving directory > `/home/local/SGeMS-1.4.1/GsTLAppli/geostat' > make[1]: *** [sub-geostat] Error 2 > make[1]: Leaving directory `/home/local/SGeMS-1.4.1/GsTLAppli' > make: *** [sub-GsTLAppli] Error 2 > " > =20 > > > > I downloaded the tgz file from the web and > First2_moments_cdf.h is > > there (in GsTL-1.2.1 /GsTL/cdf/). So I don't understand why > the > > compiler doesn't find it. Same thing for > > first_moments_cdf_Kestimator.h. > > Make sure you entered the path to GsTL-1.2.1 correctly in > > the .qmake.cache file: if for example you entered=20 > > GSTLHOME=3D/tmp/GsTL-1.2.1 > > try > > ls /tmp/GsTL-1.2.1/GsTL/cdf/First2_moments_cdf.h > > GSTLHOME should be such that > > ls $GSTLHOME/GsTL/cdf/First2 > > _moments_cdf.h > > works > > Let me know if that helps > > > > Nicolas > > > =20 > -- > Inverse Modeling and Geostatistics Project | > http://imgp.gfy.ku.dk/ > office : +45 35320509 > cell : +45 41427380=20 > =20 >=20 --=20 Inverse Modeling and Geostatistics Project | http://imgp.gfy.ku.dk/ office : +45 35320509 cell : +45 41427380 |