MPD78
10-31-2009, 12:01 PM
Hello all,
I am trying to follow the example given in 19.3.2 but I am having some trouble. I believe the problem lies in the positioning of my code.
In the fred_singular.h file, I have this layout,
template <class Q>
struct Wwghts {
......
};
struct Quad_matrix {
......
};
Then I have the main function in a .cpp file.
When I try to compile the code I get 5 errors.
The first is a syntax error '{' but all of the bracing is correct.
The second is "unexpected token(s) preceeding '{' skipping apparent function body.
The third is "weights" : is not a member of 'Wwghts<Q>'
Do I just having something in the code out of sequence?
NOTE: All of this code is copyrighted so I can't really post a nice example showing the functions.
Any help would be greatly appreciated.
Thanks
Matt
I am trying to follow the example given in 19.3.2 but I am having some trouble. I believe the problem lies in the positioning of my code.
In the fred_singular.h file, I have this layout,
template <class Q>
struct Wwghts {
......
};
struct Quad_matrix {
......
};
Then I have the main function in a .cpp file.
When I try to compile the code I get 5 errors.
The first is a syntax error '{' but all of the bracing is correct.
The second is "unexpected token(s) preceeding '{' skipping apparent function body.
The third is "weights" : is not a member of 'Wwghts<Q>'
Do I just having something in the code out of sequence?
NOTE: All of this code is copyrighted so I can't really post a nice example showing the functions.
Any help would be greatly appreciated.
Thanks
Matt