I could really use some advice. I am creating a pizza program for ordering a pizza and I have removed all the errors except for two. I have tried everything I can think of to fix this problem so it will compile, but to no avail. The only errors left are:
1>------ Rebuild All started: Project: Pizza Order App Midterm, Configuration: Debug Win32 ------
1> stdafx.cpp
1> Pizza Order Midterm.cpp
1> Pizza Order App Midterm.cpp
1>c:\users\india-n-jerry\documents\visual studio 2010\projects\pizza order app midterm\pizza order app midterm\pizza order app midterm.cpp(57): warning C4390: ';' : empty controlled statement found; is this the intent?
1> Generating Code...
1>Pizza Order App Midterm.obj : error LNK2019: unresolved external symbol "bool __cdecl moreOrders(void)" (?moreOrders@@YA_NXZ) referenced in function _main
1>C:\Users\India-n-Jerry\Documents\Visual Studio 2010\Projects\Pizza Order App Midterm\Debug\Pizza Order App Midterm.exe : fatal error LNK1120: 1 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Any help would be appreciated. Thank you for your time. The entire code is listed below seperated into 1 header and 2 cpp files.
CODE.Starts below...:
// OrderPizzaApp.cpp : Defines the entry point for the console application.
//
string thisPizza_Order = "\n\n Your order is a " + getPizzaType(); " pizza " + getSize(); " in size, with " + getExtraToppings();
" toppings, cut in " + getCut() + "pieces, for " + getService() + "\n\n\n";
// clean up code
return thisPizza_Order;
}
///////////////// end of Pizza Order.cpp
///////////////////////////////////////////////////////////////////
// Pizza_Order.h : Defines the entry point for the console application.
//must have setters and getters to access private attributes
static const int NUM_OF_ATTRIBUTES = 6;// is this right??????// had to remove const before string,
////////////////////////////////////////////////
string size;// have a default for 8 piece cut
string service;
string cut;
string extraToppings;
string pizzaType;
////////////////////////////////////////////////
string specialcut;
public:
Pizza_Order(); // same name as class // initialize attributes to empty string
//PizzaOrder setters and getters for all attributes. Put in the .h section// Size, Service, Cut, Cheese, Olives,
// what about const string sml etc? const string med? const string lge?
void Pizza_Order::setSize(string); // capital first letter (8 of them)
string Pizza_Order::getSize();
void Pizza_Order::setExtraToppings(string); // capital first letter (8 of them)
string Pizza_Order::getExtraToppings();
usually clicking on the error will take me to the offending code, or the error says a line number it is referring to in the code.
All i am getting is :
1>Pizza Order App Midterm.obj : error LNK2019: unresolved external symbol "bool __cdecl morePizza_Order(void)" (?morePizza_Order@@YA_NXZ) referenced in function _main.