I've read visual studio 2012 adding new header file, but my problem has not been solved! Anyway, I want to add foo.h
to my project:
#pragma once
void MyLDA(vector<int>, Mat_<float>, Mat&, Mat&);
Now, foo.cpp
:
#include "stdafx.h"
#include "foo.h"
using namespace std;
auto getIndices = [](const std::vector<int>& vec, const int value)
{
//some code
}
void MyLDA(vector<int> gnd, Mat_<float> _data, Mat &eigvector, Mat &eigvalue)
{
//some code
}
when i build my project, i get this error:
'vector': undeclared identifier
type 'int' unexpected
'my_project': identifier not found