This is the header file (no error here):
#ifndef BIOM_H
#define BIOM_H
#include <string>
class Biom {
public:
Biom();
~Biom();
std::string name;
};
#endif
And this is the C++ file (error in line 4):
#include "stdafx.h"
#include "Biom.h"
public:
Biom::Biom() {}
Biom::~Biom() {}
std::string Biom::name;