该错误一般是申明了头文件,但是却没有定义。参考百度
https://zhidao.baidu.com/question/130555408.html
参考网址: https://blog.csdn.net/qq_41674120/article/details/79523460
关于 error LNK2019: unresolved external symbol _cvLoadImage referenced in function _main问题的解决办法
原因是平台选择错误,电脑为X64,平台选择的WIN32,因此链接会报错。