Tengo problemas con la referencia de las clases, si alguien me puede sacar de mi ignorancia seria de agradecer, estoy trabajando en DEV C++
graphics.h
#ifndef GRAPHICS_H
#define GRAPHICS_H
struct SDL_Window;
struct SDL_Renderer;
class Graphics {
public:
Graphics();
~Graphics();
private:
SDL_Window* _window;
SDL_Renderer* _renderer;
};
#endif
Graphics.cpp
#include "../SDL/SDL.h"
#include "graphics.h"
Graphics::Graphics() {
SDL_CreateWindowAndRenderer(640, 480, 0, &this->_window, &this->_renderer);
SDL_SetWindowTitle(this->_window, "algo");
}
Graphics::~Graphics(){
SDL_DestroyWindow(this->_window);
}
main.cpp
#include "headers/graphics.h"
int main(int argc, const char* argv[])
{
Graphics graphics;
while (true)
{
}
return 0;
}
(http://img259.imagevenue.com/aAfkjfp01fo1i-2088/loc33/074229626_error1_122_33lo.jpg)
(http://img258.imagevenue.com/aAfkjfp01fo1i-7017/loc506/507404538_error2_122_506lo.jpg)