ublas/config.hpp compliation error
This is my first attempt at using ublas, here's the problem -- g++ -DHAVE_CONFIG_H -I. -I.. -I../sg -I../shared -I../include -O2 -g -c Linearity.C -o Linearity.o In file included from ../include/boost/numeric/ublas/matrix.hpp:20, from Linearity.C:16: ../include/boost/numeric/ublas/config.hpp:375: parse error before `,' token ../include/boost/numeric/ublas/config.hpp:381: parse error before `,' token ../include/boost/numeric/ublas/config.hpp:387: parse error before `,' token ../include/boost/numeric/ublas/config.hpp:401: too many template parameter lists in declaration of `typename V::size_type boost::numeric::ublas::num_elements(const V&)' ../include/boost/numeric/ublas/config.hpp:401: syntax error before `{' token ../include/boost/numeric/ublas/config.hpp:404: parse error before `>' token ../include/boost/numeric/ublas/config.hpp:408: parse error before `>' token ../include/boost/numeric/ublas/config.hpp:413: too many template parameter lists in declaration of `typename MV::size_type num_non_zeros(const MV&)' ../include/boost/numeric/ublas/config.hpp:413: syntax error before `{' token /usr/include/g++-v3/bits/std_cmath.h:69: confused by earlier errors, bailing out I'm using boost_1_29_0, and gcc 3.0.4 under Linux. I reviewed the newsgroup and didn't see this problem mentioned, so I'm sure it's something obvious to the experienced. Thanks
----- Original Message ----- From: Michael Pagels To: boost-users@yahoogroups.com Sent: Wednesday, November 13, 2002 2:30 PM Subject: [Boost-Users] ublas/config.hpp compliation error
This is my first attempt at using ublas, here's the problem --
g++ -DHAVE_CONFIG_H -I. -I.. -I../sg -I../shared -I../include -O2 -g -c Linearity.C -o Linearity.o In file included from ../include/boost/numeric/ublas/matrix.hpp:20, from Linearity.C:16: ../include/boost/numeric/ublas/config.hpp:375: parse error before `,' token
Boost CVS shows for the RC branch the lines
375 template
I'm using boost_1_29_0, and gcc 3.0.4 under Linux. I reviewed the newsgroup and didn't see this problem mentioned, so I'm sure it's something obvious to the experienced. Thanks
Do the ublas regression tests (/libs/numeric/ublas) work for you? What happens, if you compile your program with older or newer gcc version? Is it possible to reproduce this problem in a small test case? Best regards Joerg Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
On Thursday 14 November 2002 09:39, jhr.walter@t-online.de wrote:
----- Original Message ----- From: Michael Pagels To: boost-users@yahoogroups.com Sent: Wednesday, November 13, 2002 2:30 PM Subject: [Boost-Users] ublas/config.hpp compliation error
This is my first attempt at using ublas, here's the problem --
g++ -DHAVE_CONFIG_H -I. -I.. -I../sg -I../shared -I../include -O2 -g -c Linearity.C -o Linearity.o In file included from ../include/boost/numeric/ublas/matrix.hpp:20, from Linearity.C:16: ../include/boost/numeric/ublas/config.hpp:375: parse error before `,'
token
Boost CVS shows for the RC branch the lines
375 template
376 class triangular_adaptor; These look OK for me.
I'm using boost_1_29_0, and gcc 3.0.4 under Linux. I reviewed the newsgroup and didn't see this problem mentioned, so I'm sure it's
I also quickly retested the RC_1_29 branch and it worked fine with gcc 3.2 on Linux (I had already uninstalled 3.0.4 so could'nt test that anymore). toon
participants (3)
-
jhr.walter@t-online.de
-
Michael Pagels
-
Toon Knapen