Cannot Compile OpenCV 2.4.5 with VS 2013 RTM

后端 未结 3 1609
长发绾君心
长发绾君心 2021-01-06 02:12

Has anyone had any luck compiling openCV with VS 2013 RTM? I have tried and get a bunch of "min doesn\'t belong to namespace std" "max doesn\'t belong to name

3条回答
  •  情书的邮戳
    2021-01-06 02:39

    For the first issue:

    http://blogs.msdn.com/b/vcblog/archive/2013/06/28/c-11-14-stl-features-fixes-and-breaking-changes-in-vs-2013.aspx

    It is explicitly called out:

    • You must #include when calling std::min() or std::max().

    Before due to the internal implementation of the VC++ libraries would pull in these functions.

提交回复
热议问题