Skip to content

game followed by int is illegal #6

@ghost

Description

Just doesn't work. I can't find a solution.

Visual studio 2019.

and in graphics.h i get an unexpected token struct.

Main.cpp

/*
    Main.cpp
    Entry point for the program.
*/

#include "game.h"

int main(int argc, const char* argv[]) {
	Game game;
	return 0;
}

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions