title: error: expected primary-expression before ‘=’ token and many others
body: <p>Either I am blind or there is not an error. I think it would be probably the first choice. Please help me find a needle in a haystack. This is a part of my list of errors:</p>
  
  <pre><code>server.cpp: In function ‘int main(int, char**)’:
  server.cpp:64:16: error: expected primary-expression before ‘=’ token
  server.cpp:71:14: error: expected primary-expression before ‘=’ token
  server.cpp:71:24: error: expected primary-expression before ‘)’ token
  server.cpp:71:24: error: expected ‘;’ before ‘)’ token
  server.cpp:72:12: error: expected primary-expression before ‘=’ token
  server.cpp:80:10: error: expected primary-expression before ‘=’ token
  make: *** [server] Error 1
  </code></pre>
  
  <p>and this is a part of my code:</p>
  
  <pre><code>#include &lt;sys/types.h&gt;
  #include &lt;sys/socket.h&gt;
  #include &lt;unistd.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;netdb.h&gt;
  #include &lt;iostream&gt;
  #include &lt;regex.h&gt;
  #include &lt;netinet/in.h&gt;
  #include &lt;arpa/inet.h&gt;
  #include &lt;string.h&gt;
  #include &lt;string&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;locale.h&gt;
  #include &lt;cstring&gt;
  #include &lt;signal.h&gt;
  #include &lt;dirent.h&gt;
  
  using namespace std;
  
  /* global variables */
  // error codes
  #define ERR_OK = 0;
  #define ERR_PARAMS = 1;
  #define ERR_SOCKET = 2;
  #define ERR_BIND = 3;
  #define ERR_OTHER = 99;
  
  // others
  #define LISTEN_BACKLOG 50
  
  /* function prototypes */
  void printErr(int EC);
  int second(int port);
  
  int main(int argc, char **argv)
  {
    int pflag = 0;
    string pvalue;
    int port;
    int c;
  
    opterr = 0;
    while((c = getopt (argc, argv, "p:")) != -1) {
      switch(c) {
        case 'p':
          pflag = 1;
          pvalue.assign(optarg);
        break;
        case '?':
          if(optopt == 'c')
            fprintf(stderr, "Option -%c requires an argument.\n", optopt);
          else if(isprint (optopt))
            fprintf(stderr, "Unknown option `-%c'.\n", optopt);
          else
            fprintf(stderr, "Unknown option character `\\x%x'.\n", optopt);
          return ERR_PARAMS;
        default:
          abort();
      }
    }
  
    if(pflag == 0) {
      printErr(ERR_PARAMS);
      return ERR_PARAMS;
    }
    printf ("pvalue = %s\n", pvalue.c_str());
  
    port = atoi(pvalue.c_str());
  
    second(port);
  
    return ERR_OK;
  }
  </code></pre>
  
  <p>I have many more similar errors in the whole code, so I think there is something like missing collumn od something. Do you see it? I don't.</p>