title: fail to build Opencv in windows using code:block
body: <p>Following <a href="http://opencv.willowgarage.com/wiki/Getting_started" rel="nofollow">this link</a>. I am stuck in the last two steps during setting up my workstation. </p>
  
  <p>As a compiler I use Code:Block MinGW; I have already generated the compiled opencv files, now I need to build the sln file in Windows. I use Code Block to build this OpenCV Project File in the path D:\OpenCV\Build\Opencv, where I put the generated bin file after using Cmake. </p>
  
  <p>During the building, it stopped at 40%, saying;</p>
  
  <blockquote>
    <p>Linking CXX executable ....\bin\opencv_perf_core.exe
    c:/codeblock/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe:
    warning: auto-importing has been activated without
    --enable-auto-import specified on the command line. This should work unless it involves constant data structures referencing symbols from
    auto-imported DLLs. Cannot export _ZN12_GLOBAL__N_13ROp3allEv: symbol
    not found Cannot export _ZN12_GLOBAL__N_17CmpType3allEv: symbol not
    found collect2: ld returned 1 exit status mingw32-make.exe[2]: <strong>*
    [bin/opencv_perf_core.exe] Error 1 mingw32-make.exe<a href="http://opencv.willowgarage.com/wiki/Getting_started" rel="nofollow">1</a>: *</strong>
    [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2
    mingw32-make.exe: <em>*</em> [all] Error 2 Info: resolving vtable for
    cv::_OutputArray by linking to <strong>imp</strong>_ZTVN2cv12_OutputArrayE
    (auto-import) Info: resolving vtable for cv::_InputArray by linking to
    <strong>imp</strong>_ZTVN2cv11_InputArrayE (auto-import) Info: resolving vtable for cv::Exception by linking to <strong>imp</strong>_ZTVN2cv9ExceptionE (auto-import)
    Creating library file: ....\bin\libopencv_perf_core.dll.a Process
    terminated with status 2 (14 minutes, 29 seconds) 0 errors, 3 warnings</p>
  </blockquote>
  
  <p>How can I solve this problem?</p>