在製作CLASS的DLL時Vector<>類型的要 定義在 Class外面
class UNDISTORTLIBRARY_API Undistort_CameraLenses {
public:
Undistort_CameraLenses();
std::string Version();
private:
int ChessBoard_Size0 = 6;
int ChessBoard_Size1 = 9;
};
// 定義在外面
std::vector<std::string> Undistort_images_path;
如果Vector沒有定義在外面,使用時會出錯
class UNDISTORTLIBRARY_API Undistort_CameraLenses {
public:
Undistort_CameraLenses();
std::string Version();
private:
int ChessBoard_Size0 = 6;
int ChessBoard_Size1 = 9;
// 定義在裡面
std::vector<std::string> Undistort_images_path;
};