I've downloaded the opencv code from the github and executed the code using VisualStudio2012. There was no problem. I tested with some sample program execution, it works fine. With the same OpenCv code, i executed that in linux and also with some sample programs, it work's fine.
Now when i again build the same opencv code in the windows, the macros related to linux were checked on, windows related macros were checked out. Thus, resulting in the build failed.
I checked with the CMakeLists.txt, it shows UNIX, while executing in windows. How to get rid of this problem:?