undefined reference error to cv::namedWindow while working with netbeans 7.2.3 version and cygwin
i have been working with the opencv 2.4.6 library with netabeans 7.3.1 version.i have installed cygwin 1.7.25 version(32 bit installation) on Microsoft xp service pack3 . while executing the c++ function of opencv (such as namedWindow) on netbeans ide with g++ compiler of cygwin, i am getting the undefined reference error to cv::namedWindow while working with function even i have set all library and include path.
Library path set by me on netbeans 7.2.3 version and cygwin ide is C:\opencv\build\x86\vc10\lib
include directory path=C:\opencv\build\include Lib path=C:\opencv\build\x86\vc10\lib path=C:\opencv\build\include
System path=C:\opencv\build\x86\vc10\lbin path=C:\opencv\build\x86\vc10\bin
Additional Lib files=opencv_highgui246 opencv_core246
OS=32 bitsopencv_core246
i went through almost all tutorials related to netbeans and cygwin but still no be able to come out from above mentioned error.