LNK2019: unresolved external symbol error in Visual Studio C++

前端 未结 4 2010
野性不改
野性不改 2020-12-18 23:25

This is my code in Visual Studio C++

#include \"stdafx.h\"
#include
#include

using namespace cv;

int main(int          


        
4条回答
  •  借酒劲吻你
    2020-12-19 00:20

    First check How to build applications with OpenCV inside the Microsoft Visual Studio

    If you still suffer from the same problem, you could be under one of the below cases.

    1. Your active solution platform is x86 but you are trying to link x64 OpenCV libraries.
    2. Your active solution platform is X64 but you are trying to link x86 OpenCV libraries.

    If you are under one of these cases, check Compiling a 64-bit Application in Microsoft Visual Studio Express 2010

提交回复
热议问题