I'm getting crazy. I just have a header and cpp and it doesn't compile:
the .h is the following:
#pragma once
#include <string>
#include <map>
#include <windows.h>
class Activate
{
public:
Activate();
~Activate();
int accion(map<string, string>& mapa);
};
and the cpp this one:
#include "Activate.h"
using namespace std;
Activate::Activate()
{
}
Activate::~Activate()
{
}
int Activate::accion(map<string, string>& mapa){}
and I get the error mentioned above:
1>c:\users\dani.roca\desktop\autocad files\mfc dll\project1\project1\activate.h(19): error C2061: syntax error : identifier 'map'
1>c:\users\dani.roca\desktop\autocad files\mfc dll\project1\project1\activate.cpp(13): error C2511: 'int Activate::accion(std::map<_Kty,_Ty> &)' : overloaded member function not found in 'Activate'
#include "Activate.h"
using namespace std;
Activate::Activate()
{
}
Activate::~Activate()
{
}
int Activate::accion(std::map<string, string>& mapa){}
and this
class Activate
{
public:
Activate();
~Activate();
int accion(std::map<std::string, std::string>& mapa);
};
then new error appeared:
1>LINK : fatal error LNK1561: entry point must be defined