我在C++/CLI編寫一個程序,它是給我的錯誤: 錯誤C2872:「串」:不明確的符號曖昧的符號串
我使用String作爲函數的一部分: Dictionary<String^, List<array<Byte>^>^>^ FalseTrigg(Dictionary<String^, String^>^ imgParms, bool windowOn)
以下是整個程序。謝謝你的幫助。
#include <errno.h>
#include <vector>
#include <string>
#include <iostream>
#include <sstream>
#include <string>
#include <fstream>
#pragma managed(push, off)
#include "cv.h"
#include "highgui.h"
#include <stdio.h>
#include "opencv2/core/core.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/nonfree/nonfree.hpp"
#include <opencv2/nonfree/features2d.hpp>
#pragma managed(pop)
using namespace cv;
using namespace std;
using namespace System;
using namespace System::Collections::Generic;
using namespace System::Runtime::InteropServices;
public ref class FalseTrig
{
public:
FalseTrig() { }
~FalseTrig() { }
Dictionary<String^, List<array<Byte>^>^>^ FalseTrigg(Dictionary<String^, String^>^ imgParms, bool windowOn)
{}
};
''頭文件具有適當的包括警衛。包括它兩次不會傷害任何東西。 –
2013-04-30 18:51:05