Why is MinGW needed for installing OpenCV with Eclipse for C++ in windows?

I want to setup an opencv development environment. I will be using C++. The IDE of choice is eclipse. Why do i need to install MinGW, is there a way to avoid installing MinGW and only use opencv C++ libraries in eclipse?