Fantastic! That worked and the application now compiles fine.
I would have searched a long time to find the solution on my own. Thank you very much Rutger.
Parker
> To: ublas@lists.boost.org
> From: rutger@terborg.net
> Date: Fri, 11 Dec 2009 16:44:23 +0100
> Subject: Re: [ublas] Compilation error: error: expected nested-name-specifier before ‘VEC_T’
>
> Parker Jones wrote:
> >
> > Hello all,
> >
> > I am compiling someone else's C++ application that uses UBLAS and am
> > getting a compilation error:
> >
> > $ g++ distance.h
> > distance.h:16: error: expected nested-name-specifier before ‘VEC_T’
> > distance.h:16: error: expected ‘;’ before ‘vector_type’
> > distance.h:33: error: expected nested-name-specifier before ‘VEC_T’
> > distance.h:33: error: expected ‘;’ before ‘vector_type’
> >
> > Platform: Ubuntu 9.10, g++4.4, Boost 1.38.
> > I haven't touched C++ in over 10 years, so apologies if this is a trivial
> > question.
> >
> > Many thanks for any suggestions,
> > Parker
> >
>
> The compiler is complaining that a "typename" keyword is used, whereas there
> is no nested type defined. For example,
>
> template< typename Vector >
> struct something {
> typedef Vector vector_type;
> typedef typename vector::value_type value_type;
> };
>
> I.e., try removing the typename keyword from lines 16 and 33.
>
> Cheers,
>
> Rutger
>
>
>
>
> _______________________________________________
> ublas mailing list
> ublas@lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> Sent to: zoubidoo@hotmail.com
Browse profiles for Free! View photos of singles in your area.