[Gmsh] compilation error

Christophe Geuzaine geuzaine at acm.caltech.edu
Wed Apr 16 18:09:27 CEST 2003


Jean-Jacques.Bergogne at space.alcatel.fr wrote:
> 
> I  have downloaded  GMSH  1.43.0  and  tried to compile on a OSF1v5.1  system
> 
> I  have downloaded  the prerequisite freeware FLTK 1.1.3  and  GSL 1.3   and
> compiled with success
> 
> I  have an compilation error of Gmsh.tab.cpp
> cxx: Info: 1 error detected in the compilation of "Gmsh.tab.cpp".
> 
> to configure I use the following command :
> 
> export CC=/usr/bin/cc
> export CXX=/usr/bin/cxx
> ./configure --prefix=/data/castest_dsi/RECETTE/gmsh/v1.43.0  \
>                  --with-fltk-prefix==/data/castest_dsi/RECETTE/fltk/v1.1.3/bin \
>                  --with-gsl-prefix==/data/castest_dsi/RECETTE/gsl/v1.3 \
>                   > ../configure-gmsh.log  2>&1
> 
> NOTA :  if  i  use the option
> --with-fltk-prefix==/data/castest_dsi/RECETTE/fltk/v1.1.3 , configure don?t find
> FLTK ,
> i must add  the bin directory so configure find FLTK ,  is it normal ?

No. I'll fix this in the configure script. Thanks.

> 
> I send you the configure log  and the make log .
> 
> I  am not a specialist of cpp  language.
> 
> Have you an solution ?

>From your make-gmsh.log file:

cxx: Error: /usr/lib/cmplrs/cxx/V6.3-008/include/cxx/iosfwd, line 58:
#error directive: "cannot include iosfwd -- define __USE_STD_IOSTREAM to
       override default - see section 7.1.2 of the C++ Using Guide"

-> try to add -D__USE_STD_IOSTREAM to the FLAGS variable in the
"variables" file created by configure.

If this does not work, try to compile using gcc/g++ instead of cc/cxx.

Cheers,

Christophe

-- 
Christophe Geuzaine

Tel: (626) 395-4552    http://www.geuz.org
Fax: (626) 578-0124    mailto:geuzaine at acm.caltech.edu