ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The error message "expected type-specifier
" on the preceding line indicates that you have misspelled a type name or forgot to #include
the appropriate header file where the type is defined. From this point on, the parser is thrown off the track, which means the error message about the int
conversion is bogus and will disappear once you fix the original error. (It's probably some ancient C rule about converting unknown types to int by default.)
2 | No.2 Revision |
The error message "expected type-specifier
" on the preceding line indicates that you have misspelled a type name or forgot to #include
the appropriate header file where the type is defined. From this point on, the parser is thrown off the track, which means the error message about the int
conversion is bogus and will disappear once you fix the original error. (It's probably some ancient C rule about converting unknown types to int by default.)
Update: The offending line according to the posted sources (see comment below) is
static cv::DescriptorExtractor* descriptorExtractor = new cv::SiftDescriptorExtractor;
and the error message (line 89, column 61) points to the cv::SiftDescriptorExtractor
part. On my system, this class is defined in the header
<opencv2/nonfree/features2d.hpp>
, which (as far as I can tell) is not included anywhere.
NB. This is not rocket science. All the information you needed was there, and I even pointed you in the right direction.