Segmentation fault on Linux

Oct 26, 2013 at 3:06 AM
Edited Oct 26, 2013 at 3:08 AM
I managed to compile the library in Linux Mint (32 bit) and I run a small test program using the http client to get a web page. While the program works and I get the data, it crashes at the end with this Segmentation fault. Here is the code:
  web::http::client::http_client client("");

  client.request(methods::GET).then([](http_response response)
      cout << "Server returned returned status code " << response.status_code() << '.' << std::endl;

      cout << "Content length is " << response.headers().content_length() << " bytes." << std::endl;
The fault occurs when the program is closed, I think the threadpool is not disposed or something like that.
BTW, do I have to call some function to de-initialize the library?

Note that in order to be able to compile the library in Mint I had to modify the make files.