opencv 2.4 SIFT compile error
===

openCV has changed feature detectors/descriptors (as usually) with new version. I've already found, that I need to add 

    #include "opencv2/nonfree/nonfree.hpp"
    #include "opencv2/nonfree/features2d.hpp"

however, it still doesn`t work. The error I get is:

    error: ‘cv::SIFT::DetectorParams’ has not been declare

I use standard command for building

    gcc `pkg-config --cflags --libs opencv` -o descriptorExtractor main.cpp

and all the libraries, etc. should be linked correctly

    pkg-config --cflags --libs opencv

    -I/opt/ros/fuerte/include/opencv -I/opt/ros/fuerte/include  -L/opt/ros/fuerte/lib -lopencv_calib3d -lopencv_contrib -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_gpu -lopencv_highgui -lopencv_imgproc -lopencv_legacy -lopencv_ml -lopencv_nonfree -lopencv_objdetect -lopencv_photo -lopencv_stitching -lopencv_ts -lopencv_video -lopencv_videostab

What's wrong with openCV again? Please, don't ask me why do I need SIFT from openCV and not from some other software or binary, I just need it...