它们是我在 Windows 8 上的 Visual Studios 2013 中的 C++ 链接器的问题。我想在我的 Visual Studios 中使用 openCV 3.0。代码中的所有链接都将正常使用,并且 IntelliSense 会识别数据成员。但是如果我想编译程序 Visual Studios 给我以下错误:
Fehler 1 错误 LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""private: char * __thiscall cv::String::allocate(unsigned int)" (?allocate@String@cv@@AAEPADI@Z)" in Funktion ""public: __thiscall cv::String::String(char const *)" (??0String@cv@@QAE@PBD@Z)"。C:\Users\Marc\Documents\Workspaces\C++_VS\OpenCV_Test\OpenCV_Test\main.obj OpenCV_Test Fehler 2 错误 LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""private: void __thiscall cv::String::deallocate(void )" (?deallocate@String@cv@@AAEXXZ)" in Funktion ""public: __thiscall cv::String::~String(void)" (??1String@cv@@QAE@XZ)"。C:\Users\Marc\Documents\Workspaces\C++_VS\OpenCV_Test\OpenCV_Test\main.obj OpenCV_Test Fehler 3 错误 LNK2019: Verweis auf nicht aufgelöstes externes Symbol "
我使用以下指南安装了 openCV:http: //www.minlabz.com/how-to-install-opencv-3-0-0-on-windows-7-and-configure-with-visual-studio-2014/
这是我用来测试 openCV 依赖项是否有效的小代码:
#include "opencv2\highgui\highgui.hpp"
#include "opencv2\core\core.hpp"
#include <stdio.h>
using namespace cv;
int main(int argc, const char** argv)
{
const char* keyMap;
//Standard image that will be used if dont exist arguments
keyMap = "{path | | }";
//Reading the Callingarguments
CommandLineParser parser(argc, argv, keyMap);
String filename = parser.get<String>("path");
}
我希望我不会忘记一些简单的事情。