At the top of the file, I have:
#include "vector.h"
then I do a:
vector<vtarg> targVector;
and got the following error
Cannot open include file: 'vector.h': No such file or directory
Am I missing out something? I tried #include "vector" even more errors.
#include "afxwin.h"
#include "vector.h"
// CTargDlg dialog
class CTargDlg : public CDialog {
// Construction
public:
CTargDlg(CWnd* pParent = NULL);
// standard constructor
vector<vtarg> targVector;
#include <vector>. Either you are using archaic C++ or you are using a non-standard header which is not available on your machine (in the header (include) directories that you requested to be searched, or the system directories). (And since you are using template notation, you can't be using completely archaic C++, so you should be writing#include <vector>and worrying about thestdnamespace.) – Jonathan Leffler Jul 18 '11 at 6:51};. – jalf Jul 18 '11 at 6:58