Hi Hao, The OpenCV source has been reorganized to have a modular structure and the preferred way of including header files is by using the *.hpp includes. For example instead of #include you should do now #include A easy way to see which header you need to include if you know the function you are using: for example, assuming you want to display an image using the cv::imshow function and want to know what header to include: roscd opencv2/opencv/include/ grep -r imshow . Hope this helps, Marius On Mon, Aug 2, 2010 at 1:05 PM, Hao Du wrote: > I use the package opencv2, and included "opencv/cv.h".  It reports a > warning: >     #warning "This is a deprecated opencv header provided for > compatibility. Please include a header from a corresponding opencv module" > > I haven't been staying in this developing track.  It seems that cv.h is > deprecated in Version 2 (or 2.1?). > > What would be the right way then to include opencv headers?   -- It > would be further appreciated if anyone can point me to the reason of > that being deprecated. > > Thanks! > > Hao > _______________________________________________ > ros-users mailing list > ros-users@code.ros.org > https://code.ros.org/mailman/listinfo/ros-users >