Skip to content

undefined reference to `Game::Game()' #2

Description

Hello! I am new with C++ and I am trying to learn how to make a console RPG game!

I just finished watching tutorial one and I get this error when I try to run the game:

main.cpp:(.text+0x31): undefined reference to `Game::Game()'
main.cpp:(.text+0x59): undefined reference to `Game::MainMenu()'
main.cpp:(.text+0x6c): undefined reference to `Game::~Game()'
main.cpp:(.text+0x8e): undefined reference to `Game::~Game()'

Does anyone know how to fix this?

I have tried to git clone your repo (the final game) and run it but still get the same error with:

main.cpp:(.text+0x3d): undefined reference to `Game::initGame()'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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