[gmx-users] Problem compiling GROMACS 3.2.1 with GCC 4.0.0

David spoel at xray.bmc.uu.se
Tue May 10 22:36:11 CEST 2005


On Tue, 2005-05-10 at 10:40 -0400, Arijit Tarafdar wrote:
> Hi I get the following error while trying to compile GROMACS with GCC 
> 4.0.0 on AMD64. Is typename not a reserved word? Following is the excerpt 
> from make.log file:

replace the typename by something else, like yoghurt.
I don't think typename used to be a reserverd word in C, but maybe it is
in C++. This variable doesn't exist in CVS anymore.


> 
> /opt/lam-7.1.1-GCC4.0.0-TCP-AMD64/bin/mpicc -DHAVE_CONFIG_H -I. -I. 
> -I../../src -I../../include 
> -DGMXLIBDIR=\"/opt/gromacs-3.2.1-lam-7.1.1-GCC4.0.0-TCP-AMD6
> 4/share/top\" -I/opt/lam/include -I/opt/fftw/include -I/opt/lam/include 
> -I/opt/fftw/include -MT xmlio.lo -MD -MP -MF .deps/xmlio.Tpo -c xmlio.c -o 
> xmlio.o
> /opt/gcc-4.0.0/bin/g++ -DHAVE_CONFIG_H -I. -I. -I../../src 
> -I../../include 
> -DGMXLIBDIR=\"/opt/gromacs-3.2.1-lam-7.1.1-GCC4.0.0-TCP-AMD64/share/top\" 
> -I/opt
> /lam/include -I/opt/fftw/include  -c ./mkinl.c
> ../../include/metacode.h:64: error: using 'typename' outside of template
> ../../include/metacode.h:64: error: expected nested-name-specifier before 
> '[' token
> ../../include/metacode.h:64: error: expected unqualified-id before '[' 
> token
> ../../include/metacode.h:116: error: expected ',' or '...' before 
> 'typename'
> ./mkinl.c: In function 'int main(int, char**)':
> ./mkinl.c:439: error: no 'operator++(int)' declared for postfix '++', 
> trying prefix operator instead
> ./mkinl.c:439: error: no match for 'operator++' in '++loop.loop_t::coul'
> ./mkinl.c:440: error: no 'operator++(int)' declared for postfix '++', 
> trying prefix operator instead
> ./mkinl.c:440: error: no match for 'operator++' in '++loop.loop_t::vdw'
> ./mkinl.c:441: error: no 'operator++(int)' declared for postfix '++', 
> trying prefix operator instead
> ./mkinl.c:441: error: no match for 'operator++' in '++loop.loop_t::sol'
> ./mkinl.c:442: error: no 'operator++(int)' declared for postfix '++', 
> trying prefix operator instead
> ./mkinl.c:442: error: no match for 'operator++' in '++loop.loop_t::free'
> ./mkinl.c:476: error: no 'operator++(int)' declared for postfix '++', 
> trying prefix operator instead
> ./mkinl.c:476: error: no match for 'operator++' in '++loop.loop_t::free'
> make[3]: *** [mkinl.o] Error 1
> make[3]: Leaving directory 
> `/root/Packages/Builds/gromacs-3.2.1-lam-7.1.1-GCC4.0.0-TCP-AMD64/src/gmxlib'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory 
> `/root/Packages/Builds/gromacs-3.2.1-lam-7.1.1-GCC4.0.0-TCP-AMD64/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory 
> `/root/Packages/Builds/gromacs-3.2.1-lam-7.1.1-GCC4.0.0-TCP-AMD64/src'
> make: *** [all-recursive] Error 1
> 
> My configuration script looks like:
> 
> ./configure --prefix=/opt/gromacs-3.2.1-lam-7.1.1-GCC4.0.0-TCP-AMD64 \
> --enable-mpi --enable-fortran --program-suffix=_AMD64 --without-x 
> --without-xml \
> CXX=/opt/gcc-4.0.0/bin/g++ CC=/opt/gcc-4.0.0/bin/g++ \
> F77=/opt/gcc-4.0.0/bin/gfortran 
> MPICC=/opt/lam-7.1.1-GCC4.0.0-TCP-AMD64/bin/mpicc \
> LIBS="-L/opt/lam/lib" CFLAGS="-I/opt/lam/include -I/opt/fftw/include" \
> CXXFLAGS="-I/opt/lam/include -I/opt/fftw/include" 
> CPPFLAGS="-I/opt/lam/include -I/opt/fftw/include" \
> FFLAGS="-I/opt/lam/include -I/opt/fftw/include" LDFLAGS="-L/opt/fftw/lib"
> 
> LAM 7.1.1 and FFTW compiled fine with GCC 4.0.0
> 
> Thanks for any help.
> 
> Arijit
> 
> 
> 
> _______________________________________________
> gmx-users mailing list
> gmx-users at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-users
> Please don't post (un)subscribe requests to the list. Use the 
> www interface or send it to gmx-users-request at gromacs.org.
-- 
David.
________________________________________________________________________
David van der Spoel, PhD, Assoc. Prof., Molecular Biophysics group,
Dept. of Cell and Molecular Biology, Uppsala University.
Husargatan 3, Box 596,          75124 Uppsala, Sweden
phone:  46 18 471 4205          fax: 46 18 511 755
spoel at xray.bmc.uu.se    spoel at gromacs.org   http://xray.bmc.uu.se/~spoel
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++




More information about the gromacs.org_gmx-users mailing list