G
G
German2018-05-29 23:04:54
Qt
German, 2018-05-29 23:04:54

The project with asio in QTCreator does not compile, why?

I'm trying to compile a program with asio, I get the following error
5b0db1dd59f45882972941.png
. The code itself:

#include <iostream>
#include <winsock2.h>
#include <winsock.h>
#include <boost/asio.hpp>
#include <boost/asio/impl/src.hpp>
#include <boost/system/error_code.hpp>
#include <boost/system/system_error.hpp>
#include <boost/system/cygwin_error.hpp>
#include <boost/system/linux_error.hpp>
#include <boost/system/windows_error.hpp>

using namespace std;

int main()
{
    cout << "OK";
    return 0;
}

Contents of .pro file
TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt
INCLUDEPATH += C:/boost/boost_mingw_53_32/include/boost-1_67
LIBS += "-LC:/boost/boost_mingw_53_32/ lib" -lboost_system-mgw53-mt-d-x32-1_67
SOURCES += main.cpp

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question