![]() Registered Member ![]()
|
Hi Everyone
I just thought of placing my Eigen data-types as members inside a class. I am using visual studio to do the compiling. It is giving invalid data type but when I place the same in main() I do not get any errors. The exact error is "Error:Expected a type specifier" Here is the code I am using
Please help me out. Chandra ![]() |
![]() Moderator ![]()
|
This is not how member variables are initialized in C++. You need a constructor:
Please, open a book on C++ ! |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]