|
Ublas : |
From: Gunter Winkler (guwi17_at_[hidden])
Date: 2006-05-23 06:19:45
Am Dienstag, 23. Mai 2006 12:12 schrieb dvir schirman:
> Hi
>
> How can I declare a vector at the header of a class?
> I tried to write in a header file:
>
> ublas::vector<float> cov(3);
>
> but I got the following error:
>
> simple_env.H:25: error: expected identifier before numeric constant
> simple_env.H:25: error: expected `,' or `...' before numeric constant
> simple_env.H:25: error: ISO C++ forbids declaration of `parameter'
> with no type
Did you include all ublas headers before the above declaration? Was cov
already used at another place?
Please give more information (or the full header) in order to get help.
mfg
Gunter