------------------------- ------ 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 -------------------------- //=========================================================================== // The Snowman Class //=========================================================================== #include #include "stdafx.h" #include "Snowman.h" #include "Sphere.h" using namespace std; /* rgb colors grey (211, 211, 211) black (0,0,0); */ //=========================================== // Snowman::InitSnowman // Initializes all private member spheres. //=========================================== void Snowman::InitSnowman() { // draw head myHead.SetRadius(5.0); myHead.SetBlue(211.0); myHead.SetGreen(211.0); myHead.SetRed(211.0); myHead.SetX(10.0); myHead.SetY(10.0); myHead.SetZ(2.0); //draw torso myMiddle.SetRadius(5.0); myMiddle.SetBlue(211.0); myMiddle.SetGreen(211.0); myMiddle.SetRed(211.0); myMiddle.SetX(10.0); myMiddle.SetY(10.0); myMiddle.SetZ(2.0); //draw lower body myBottom.SetRadius(5.0); myBottom.SetBlue(211.0); myBottom.SetGreen(211.0); myBottom.SetRed(211.0); myBottom.SetX(10.0); myBottom.SetY(10.0); myBottom.SetZ(2.0); //draw first eye eyeOne.SetRadius(5.0); eyeOne.SetBlue(211.0); eyeOne.SetGreen(211.0); eyeOne.SetRed(211.0); eyeOne.SetX(10.0); eyeOne.SetY(10.0); eyeOne.SetZ(2.0); //draw second eye eyeTwo.SetRadius(5.0); eyeTwo.SetBlue(211.0); eyeTwo.SetGreen(211.0); eyeTwo.SetRed(211.0); eyeTwo.SetX(10.0); eyeTwo.SetY(10.0); eyeTwo.SetZ(2.0); } //================================================================== // Snowman::DrawSnowman // Calls the framework's DrawSphere() function for every sphere to be // rendered (that is, all the spheres that comprise the snowman). //================================================================== void Snowman::DrawSnowman() { DrawSphere(myHead); DrawSphere(myMiddle); DrawSphere(myBottom); DrawSphere(eyeOne); DrawSphere(eyeTwo); } double Snowman::GetVolume() { double vol = 100.0; //return myMiddle.GetVolume(); return vol; }