I got the answer.
- Locate and open mexopts.bat
- access this pdf
- Follow from SETTING MATLAB TO COMPILE C++ AND MATLAB MEX FILES AND LINK THEM WITH OPENCV OBJ FILES
while editing mexopts.bat, in adding libraries to LINKFLAGS, add the following libraries from /build/x64/vc10/lib
core249 and 249d flann249 (and the same as above. rest also have the tag 249 and 249d. this is the version number. 2.4.9 in my case) highgui imageproc legacy objdetect
The reason is all these were required to compile mexseeds.cpp. But the basic is atleast the 1st 4. after adding save and compile the mex file. In the pdf, the library names will be different, since it was created during the older versions of opencv