title: undefined reference to `Static Class Member variable inside Static member function'
body: <p>I am actually trying to implement a simulation of Paging, in my memory manager, i tried create a static page table, but its giving reference error when i try to print it.</p>
  
  <pre><code>#ifndef MEMORYMANAGER_H
  #define MEMORYMANAGER_H
  #include "memory.h"
  
  class MemoryManager
  {
      private:
          PhysicalMemory RAM;
          LogicalMemory VM;
          int offsetValue;
          static int ** pageTable;
      public:
          MemoryManager();
          bool addProcess(TimeSliceRequest);
          void printVirtualMemory();
          /*
           * Page Table Initialization
           **/
          static void initializePageTable(){
              pageTable = new int * [pageSize];
              for (int i=0; i&lt;pageSize; i++) {
                  pageTable[i] = new int [2];
              }
          }
          static int getPageTabe(int x, int y) {
              return MemoryManager::pageTable[x][y]; // undefined reference to `MemoryManager::pageTable'
          }
          static void printPageTable(){
              for(int i=0; i&lt;pageSize; i++){
                  for(int j=0; j&lt;2; j++) {
                      cout &lt;&lt; getPageTabe(i,j);
                  }
                  cout &lt;&lt; endl;
              }
          }
  };
  
  
  #endif // MEMORYMANAGER_H
  </code></pre>
  
  <p>Getting this Error from a long long time, please help</p>