Reputation: 357
I am faced with the following syntax error whle building a 3rd party lib
error C2144: syntax error : 'int' should be preceded by ';'
for the following typedef declaration
typedef SO2Group<double> SO2 EIGEN_DEPRECATED;
The syntax is indeed not what I am familar with, however similar declartion have been found on multiple files of the project so I do not believe its a typo.
Is the above typedef declaration legal and how should I go about fixing the error?
thanks
Upvotes: 0
Views: 1461
Reputation: 179
It looks like you are trying to build the Sohpus library: a C++ implementation of Lie Groups using Eigen. I ran into the same problem and it seems to be an MSVC problem. I found this fork of the Sophus library. This should compile using MSVC.
Upvotes: 1