So I have this project with bunch of headers included in core.h. main.cpp is included the core.h. Every header files included the core.h because the stdlib, directx headers and etc.
Now I created a core class in core.h that has an object inside and shows errors
error C2146: syntax error : missing ';' before identifier 'md2'
Code:
#ifndef CORE_H
#define CORE_H
//Bunch of headers with the MD2Model.h
class Core
{
public:
MD2Model md2;
};
#endif
How can I fix this? I just want main.cpp to include one header file to use my engine.
Thank you very much
Sarah22