I'm getting a linking error(I think) when trying to compile my program.
This is my Game.h file:
#ifndef GAME_H
#define GAME_H
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
class Game {
private:
sf::RenderWindow *window;
public:
Game();
~Game();
void start();
};
#endif
And this is my Game.cpp file:
#include "Game.h"
Game::Game() {
this->window = new sf::RenderWindow(sf::VideoMode(800, 600, 32), "Pong", !sf::Style::Resize | sf::Style::Close);
}
Game::~Game() {
}
void Game::start() {
}
This is the build script I am using, the dll files are in the same directory as the code files.
g++ -o Pong.exe Main.cpp Game.h Game.cpp -lsfml-system -lsfml-graphics -lsfml-audio
Any way to fix this?