私には2つのクラスがあり、一方は他方から継承されています。コンパイルすると、次のエラーが発生します。
Entity.obj:エラーLNK2019:未解決の外部シンボル "public:__thiscall Utility :: Parsables :: Base :: Base(void)"(?? 0Base @ Parsables @ Utility @@ QAE @ XZ)関数 "public:__ thiscall Utility :: Parsables :: Entity :: Entity(void) "(?? 0Entity @ Parsables @ Utility @@ QAE @ XZ)
Entity.obj:エラーLNK2019:未解決の外部シンボル "public:virtual __thiscall Utility :: Parsables :: Base ::〜Base(void)"(?? 1Base @ Parsables @ Utility @@ UAE @ XZ)関数 "public: virtual __thiscall Utility :: Parsables :: Entity ::〜Entity(void) "(?? 1Entity @ Parsables @ Utility @@ UAE @ XZ)
D:\ Programming \ Projects \ Cafeine \ Debug \ Caffeine.exe:致命的なエラーLNK1120:2つの未解決の外部
私は本当に何が起こっているのか理解できません..誰かが私が間違っていることを見ることができますか?Visual C ++Express2008を使用しています。ファイルは次のとおりです。
"include / Utility / Parsables / Base.hpp"
#ifndef CAFFEINE_UTILITY_PARSABLES_BASE_HPP
#define CAFFEINE_UTILITY_PARSABLES_BASE_HPP
namespace Utility
{
namespace Parsables
{
class Base
{
public:
Base( void );
virtual ~Base( void );
};
}
}
#endif //CAFFEINE_UTILITY_PARSABLES_BASE_HPP
"src / Utility / Parsables / Base.cpp"
#include "Utility/Parsables/Base.hpp"
namespace Utility
{
namespace Parsables
{
Base::Base( void )
{
}
Base::~Base( void )
{
}
}
}
"include / Utility / Parsables / Entity.hpp"
#ifndef CAFFEINE_UTILITY_PARSABLES_ENTITY_HPP
#define CAFFEINE_UTILITY_PARSABLES_ENTITY_HPP
#include "Utility/Parsables/Base.hpp"
namespace Utility
{
namespace Parsables
{
class Entity : public Base
{
public:
Entity( void );
virtual ~Entity( void );
};
}
}
#endif //CAFFEINE_UTILITY_PARSABLES_ENTITY_HPP
"src / Utility / Parsables / Entity.cpp"
#include "Utility/Parsables/Entity.hpp"
namespace Utility
{
namespace Parsables
{
Entity::Entity( void )
{
}
Entity::~Entity( void )
{
}
}
}