samedi 12 septembre 2020

when i include boost header i have an error: Info: Nothing to build for myTest

I install boost library and i want to test it. I build and run the following project. But i have a problem. When i include <boost/asio.hpp>, CDT build console prints this "Info: Nothing to build for MyTestProject" and it doesn't print anything to MyTestProject.exe console. If i comment out <boost/asio.hpp>, it prints "Hello world!". What is the problem? I'm using mingw-64, eclipse CDT, boost_1_68_0 on windows. Thank you!

#include <iostream>
#include <boost/asio.hpp>
//#include <boost/date_time/posix_time/posix_time.hpp>
using namespace std;
int main()
{
  //boost::asio::io_context io;
  //boost::asio::deadline_timer t(io, boost::posix_time::seconds(5));
  //t.wait();

  cout << "Hello world!" << std::endl; 
  return 0;
}

Aucun commentaire:

Enregistrer un commentaire