[Linker Error]

Hello. Forgive me if this was posted twice. I don't know what happened. I have no idea what this error mean (using Dev-C== compiler, Vista, IE7).
Error Msg.
[Linker error] undefined reference to `getInventory(std::basic_ifstream<char, std::char_traits<char> >&, std::vector<std::string, std::allocator<std::string> >, std::vector<std::string, std::allocator<std::string> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<double, std::allocator<double> >, std::vector<double, std::allocator<double> >)'
Id returned 1 exit status

CODE:
#include <fstream>
#include <iostream>
#include <iomanip>
#include <vector>
#include <string>

using namespace std;

const int invSize = 2;

void getInventory (ifstream& infile, vector<string> itemID, vector<string> itemName, vector<int> pOrdered,
vector<int> pInStore, vector<int> pSold, vector<double> manufPrice, vector<double> sellingPrice);

int main()
{

vector<int> itemQuantity;
vector<string> itemID;
vector<string> itemName;
vector<int> pOrdered;
vector<int> pInStore;
vector<int> pSold;
vector<double> manufPrice;
vector<double> sellingPrice;

ifstream infile;

infile.open("I:\\inventory.txt");
if (!infile)
{
cout << "Input file (inventory.txt) does not exsit." << endl;
system ("pause");
return 1;
}

getInventory(infile, itemID, itemName, pOrdered, pInStore, pSold, manufPrice, sellingPrice);



infile.close();
system ("pause");
return 0;
}



The linker can't find the definition of getInventory. Did you write one?
Topic archived. No new replies allowed.