------------------------- ------ Build started: Project: Snowman, Configuration: Debug Win32 ------ Linking... ChildView.obj : error LNK2019: unresolved external symbol "public: __thiscall Sphere::Sphere(void)" (??0Sphere@@QAE@XZ) referenced in function "public: __thiscall Snowman::Snowman(void)" (??0Snowman@@QAE@XZ) Snowman.obj : error LNK2019: unresolved external symbol "public: void __thiscall Sphere::SetRadius(double)" (?SetRadius@Sphere@@QAEXN@Z) referenced in function "public: void __thiscall Snowman::InitSnowman(void)" (?InitSnowman@Snowman@@QAEXXZ) Debug/proj05.exe : fatal error LNK1120: 2 unresolved externals -------------------------- ------------------ Sphere.h ----------------- #ifndef _Sphere #define _Sphere //========= // Sphere //========= class Sphere { public: Sphere(); //constructor double //all of the get functions return a respective double value GetX(), GetY(), GetZ(), GetRed(), GetGreen(), GetBlue(), GetRadius(), GetVolume(); void // all of the void Set* funtions take a double SetX(double), SetY(double), SetZ(double), SetGreen(double), SetBlue(double), SetRed(double), SetRadius(double); private: double x, y, z, r, g, b, radius; }; //end Sphere header #endif ------------------------ Sphere.cpp ------------------------ #include #include "stdafx.h" #include "Sphere.h" #define PI 3.14 using namespace std; /* DECLARE Sphere CLASS METHODS */ double Sphere::GetX() { return x; } double Sphere::GetY() { return y; } double Sphere::GetZ() { return z; } double Sphere::GetRed() { return r; } double Sphere::GetGreen() { return g; } double Sphere::GetBlue() { return b; } double Sphere::GetRadius() { return radius; } double Sphere::GetVolume() { double vol, rad; rad = r; vol = ((4.0/3.0)*PI*rad*rad*rad); return vol; } //set values void Sphere::SetX(double newX) { x = newX; } void Sphere::SetY(double newY) { y = newY; } void Sphere::SetZ(double newZ) { z = newZ; } void Sphere::SetRed(double newRed) { r = newRed; } void Sphere::SetGreen(double newGreen) { g = newGreen; } void Sphere::SetBlue(double newBlue) { b = newBlue; }