Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualAkashi

Posted 17 September 2013 - 08:06 PM

I'm trying to work out a simple, functioning game engine, and I'm starting out as basic as I think I can get.

 

I have a virtual base class, Entity; the only child class I have for it currently is the Block class. I have a SceneManager class that contains a vector of Entity pointers, and with the Init() function, I attempt to populate it with Block objects, using an overloaded constructor. At first I thought it was because I did not have a corresponding overloaded constructor in the base class, but even when I added it, I got the same error:

 

-

LNK2019: unresolved external symbol "public: __thiscall Entity::Entity(void)" referenced in function "public: __thiscall Block::Block(short,short)"

-

 

This is my code:

 

Entity.hpp

Spoiler

 

Block.hpp

Spoiler

 

Block.cpp

Spoiler

 

SceneManager.cpp

Spoiler

#2Akashi

Posted 17 September 2013 - 08:05 PM

I'm trying to work out a simple, functioning game engine, and I'm starting out as basic as I think I can get.

 

I have a virtual base class, Entity; the only child class I have for it currently is the Block class. I have a SceneManager class that contains a vector of Entity pointers, and with the Init() function, I attempt to populate it with Block objects, using an overloaded constructor. At first I thought it was because I did not have a corresponding overloaded constructor in the base class, but even when I added it, I got the same error:

 

-

LNK2019: unresolved external symbol "public: __thiscall Entity::Entity(void)" referenced in function "public: __thiscall Block::Block(short,short)"

-

 

This is my code:

 

Entity.hpp

Spoiler

 

Block.hpp

Spoiler

 

Block.cpp

Spoiler

 

SceneManager.cpp

Spoiler

#1Akashi

Posted 17 September 2013 - 06:30 PM

I'm trying to work out a simple, functioning game engine, and I'm starting out as basic as I think I can get.

 

I have a virtual base class, Entity; the only child class I have for it currently is the Block class. I have a SceneManager class that contains a vector of Entity pointers, and with the Init() function, I attempt to populate it with Block objects, using an overloaded constructor. At first I thought it was because I did not have a corresponding overloaded constructor in the base class, but even when I added it, I got the same error:

 

-

LNK2019: unresolved external symbol "public: __thiscall Entity::Entity(void)" referenced in function "public: __thiscall Block::Block(short,short)"

-

 

This is my code:

 

Entity.hpp

Spoiler

 

Block.hpp

Spoiler

 

Block.cpp

Spoiler

 

SceneManager.cpp

Spoiler

PARTNERS