title: Unresolved external Symbol, fatal error LNK1120
body: <p>I'm trying to create a program that stores an inventory of items into a dynamic array, while keeping track of the itemID, a description of the item, quantity and price. Only problem is I get an unresolved external symbol error </p>
  
  <pre><code>"struct inventory item * * list", fatal error LNK1120. 
  </code></pre>
  
  <p>Any idea what the problem is or how to resolve it?</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;fstream&gt;
  #include &lt;string&gt;
  #include &lt;cctype&gt;
  #include &lt;vector&gt;
  
  using namespace std;
  
  struct inventoryitem{
      char itemid[7];
      string itemDesc;
      int quantity;
      float price;
      float retailprice;
  };
  
  inventoryitem *list[];
  void add();
  void edit();
  void search();
  void display();
  void remove();
  void textfile();
  
  int main(){//main menu
      while(true){
          cout &lt;&lt; "\nInventory Database Manager\n";
          cout &lt;&lt; "_____________________________\n";
          cout &lt;&lt; "What would you like to do?\n";
          cout &lt;&lt; "1) Add item to database\n";
          cout &lt;&lt; "2) Edit item in database\n";
          cout &lt;&lt; "3) Search the database for an item\n";
          cout &lt;&lt; "4) Delete an item in database\n";
          cout &lt;&lt; "5) Display all items\n";
          //cout &lt;&lt; "6) Exit program\n";
          cout &lt;&lt; "Input command (1-5)\n\n";
          int input;
          cin &gt;&gt; input;
          switch(input){
              case 1: add();
              case 2: edit();
              case 3: search();
              case 4: remove();
              case 5: display();
              default : cout &lt;&lt; "\nError, invalid input, try again";
          }
      }
  }
  
  int inc = 0;
  
  void add(){
      inventoryitem item;
      cout &lt;&lt; "\nEnter Item ID (3 letters followed by 4 digits)\n";
      cin &gt;&gt; list[inc]-&gt;itemid;
      for(int x = 0; x &lt; 6; x++){//validates the item ID, checks if the first 3 digits are numbers first, then the next 4 
          if(x &lt; 2){
              if(isalpha(item.itemid[x])){
                  //do nothing
              }
              else{
                  cout &lt;&lt; "Error, itemID is 3 letters followed by 4 digits";
                  break;
              }
          }
          if(x &gt; 2){
              if(isdigit(item.itemid[x])){
                  //do nothing
              }
              else{
                  cout &lt;&lt; "Error, itemID is 3 letters followed by 4 digits";
                  break;
              }
          }
      }
      cout &lt;&lt; "Enter the item's description\n";
      cin &gt;&gt; list[inc]-&gt;itemDesc;
      cout &lt;&lt; "Enter the quantity of item\n";
      cin &gt;&gt; list[inc]-&gt;quantity;
      cout &lt;&lt; "Enter the price of the item\n";
      cin &gt;&gt; list[inc]-&gt;price;
      cout &lt;&lt; "Enter the retail price of the item\n";
      cin &gt;&gt; list[inc]-&gt;retailprice;
  
  
  }
  void edit(){}
  void search(){}
  void display(){}
  void remove(){}
  void textfile(){}
  </code></pre>