This is my project : https://github.com/Naseefabu/HFTBOT/blob/master/src/main.cpp
When i try to build it, Error : https://gist.github.com/Naseefabu/5a114956f39b6c853916bcaf66f939e4
Is it because that i included boost/url/src.hpp
in both httpClient.cpp and httpClient.hpp ??
What's the solution here ?
please help and advance thanks!
CodePudding user response:
From the URL library:
To use as header-only; that is, to eliminate the requirement to link a program to a static or dynamic Boost.URL library, simply place the following line in exactly one new or existing source file in your project.
#include <boost/url/src.hpp>
[Emphasis mine]
You include that header file in one of your own header files, which is included in both your source files.
As the documentation says, it should be included in only one source file (my recommendation is that you do it in a separate source file, for that specific purpose).