expected primary-expression before "_typeof_" : I am new to c++. I am trying a tiny piece of code to interact with a local instance of InfluxDB.

    #include <iostream>
    #include <stdio.h>
    #include <string.h>
    #include <curl/curl.h>
    #include <curl/curlver.h>
    #include <curl/easy.h>
    #include <curl/mprintf.h>
    #include <curl/multi.h>
    #include <curl/stdcheaders.h>
    #include <curl/system.h>
    #include <curl/typecheck-gcc.h>

    using namespace std;

    bool createInfluxDB(char *url, char *data) {
      CURL *curl;

      curl = curl_easy_init();

      if(curl) {
        CURLcode res;
        /* What Content-type should i use?*/
        struct curl_slist* headers = curl_slist_append(headers, "Content-Type: application/json");
        /*--data-urlencode*/
        char *urlencoded = curl_easy_escape(curl, data, int(strlen(data)));

        curl_easy_setopt(curl, CURLOPT_URL, url);
        curl_easy_setopt(curl, CURLOPT_POST, 1L);
        curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
        curl_easy_setopt(curl, CURLOPT_POSTFIELDS, urlencoded);
        curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE,     (long)strlen(urlencoded));

        res = curl_easy_perform(curl);

        /*omitted controls*/

        curl_free(urlencoded);
        curl_slist_free_all(headers);
        curl_easy_cleanup(curl);
      }

      return(true);
    }

    int main(int argc, char *argv[]){

       char *url = "http://localhost:8086/query";
       char *data = "q=CREATE DATABASE mydb";
       /* should i change data string to json?
          data = "{\"q\":\"CREATE DATABASE mydb\" }" */

       bool res = createInfluxDB(url, data);

       /*control result*/

       return(0);
    }

When trying to build it, i get the following errors: 

"expected primary-expression before '_typeof_'

Any ideas where it might come from ?

I am working on codeblocks 16.01, using GCC compiler on Ubuntu.