I am getting an error error C2514: 'BLOCK' : CLASS HAS NO CONSTRUCTORwith a simple class like this:
BLOCK.h
#pragma once
#include "helpful.h"
class WORLD;
class BLOCK
{
public:
short int type;
void Render();
BLOCK();
~BLOCK(void);
};
BLOCK.cpp
#include "BLOCK.h"
#include "WORLD.h"
BLOCK::BLOCK(void)
{
}
void BLOCK::Render()
{
}
BLOCK::~BLOCK(void)
{
}
But the class is BLOCKdefined, no?
source
share