Giter VIP home page Giter VIP logo

Comments (8)

Grimmy347 avatar Grimmy347 commented on September 27, 2024

right now I get this when trying to compile13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(102): error C2039: 'get_io_context': is not a member of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/asio/windows/stream_handle.hpp(50): note: see declaration of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(102): error C2512: 'boost::asio::windows::stream_handle': no appropriate default constructor available (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(102): note: No constructor could take the source type, or constructor overload resolution was ambiguous (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(107): error C2039: 'get_io_context': is not a member of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/asio/windows/stream_handle.hpp(50): note: see declaration of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(107): error C2512: 'boost::asio::windows::stream_handle': no appropriate default constructor available (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(107): note: No constructor could take the source type, or constructor overload resolution was ambiguous (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(115): error C2039: 'get_io_context': is not a member of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/asio/windows/stream_handle.hpp(50): note: see declaration of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(115): error C2512: 'boost::asio::windows::stream_handle': no appropriate default constructor available (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(115): note: No constructor could take the source type, or constructor overload resolution was ambiguous (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(120): error C2039: 'get_io_context': is not a member of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/asio/windows/stream_handle.hpp(50): note: see declaration of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(120): error C2512: 'boost::asio::windows::stream_handle': no appropriate default constructor available (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(120): note: No constructor could take the source type, or constructor overload resolution was ambiguous (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(131): error C2039: 'get_io_context': is not a member of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/asio/windows/stream_handle.hpp(50): note: see declaration of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(133): error C2039: 'get_io_context': is not a member of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/asio/windows/stream_handle.hpp(50): note: see declaration of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(240): error C2039: 'get_io_context': is not a member of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/asio/windows/stream_handle.hpp(50): note: see declaration of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(241): error C2039: 'get_io_context': is not a member of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/asio/windows/stream_handle.hpp(50): note: see declaration of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(240): error C2512: 'boost::asio::windows::stream_handle::stream_handle': no appropriate default constructor available (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(241): error C2512: 'boost::asio::windows::stream_handle::stream_handle': no appropriate default constructor available (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(340): error C2039: 'get_io_context': is not a member of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/asio/windows/stream_handle.hpp(50): note: see declaration of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(340): error C2440: '<function-style-cast>': cannot convert from 'boost::winapi::HANDLE_' to 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(340): note: No constructor could take the source type, or constructor overload resolution was ambiguous (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(341): error C2039: 'get_io_context': is not a member of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/asio/windows/stream_handle.hpp(50): note: see declaration of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(341): error C2440: '<function-style-cast>': cannot convert from 'boost::winapi::HANDLE_' to 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\Program Files\boost\boost/process/detail/windows/async_pipe.hpp(341): note: No constructor could take the source type, or constructor overload resolution was ambiguous (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\legionserver\src\common\Utilities\StartProcess.cpp(28): error C2039: 'initializers': is not a member of 'boost::process' 13>C:\Program Files\boost\boost/process/start_dir.hpp(43): note: see declaration of 'boost::process'

from ashamanecore.

Grimmy347 avatar Grimmy347 commented on September 27, 2024

im using cmake 3.15.4 and boost 1.67

from ashamanecore.

Grimmy347 avatar Grimmy347 commented on September 27, 2024

if i try to use a higher version of boost then cmake does not want to recognize my boost version

from ashamanecore.

LukeRekt avatar LukeRekt commented on September 27, 2024

check if boost path is set to C:/local/boost_1_67_0 instead of C:\local\boost_1_66_0

from ashamanecore.

DJBoxer avatar DJBoxer commented on September 27, 2024

im using cmake 3.15.4 and boost 1.67

try using cmake 3.15.2 and Boost 1.67 that was working for me in windows. Also your error is related to old version of boost.

you can refer to here for reference (Linux related) but same scenario #169 (comment)

from ashamanecore.

Grimmy347 avatar Grimmy347 commented on September 27, 2024

CMake Warning (dev) at dep/boost/CMakeLists.txt:41 (find_package):
So when I run cmake with 1.67 it detects boost but I get the following warning.

`Policy CMP0074 is not set: find_package uses _ROOT variables.
Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

Environment variable Boost_ROOT is set to:

C:/local/boost_1_67_0

For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.`

When I run visual studios I get this:

13>C:\local\boost_1_67_0\boost/process/detail/windows/async_pipe.hpp(102): error C2039: 'get_io_context': is not a member of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp) 13>C:\local\boost_1_67_0\boost/asio/windows/stream_handle.hpp(50): note: see declaration of 'boost::asio::windows::stream_handle' (compiling source file C:\legionserver\src\common\Utilities\StartProcess.cpp)

That makes it look like it is using backslash rather than forward slash. In environment variables it is set to :
Variable name: Boost_ROOT
Variable value: C:/local/boost_1_67_0

from ashamanecore.

Grimmy347 avatar Grimmy347 commented on September 27, 2024

Nice, I had to use a very specific version of boost to get this to work.
First I had to restart after updating the system variable. Then I had to delete the copy of ashamanecore and reclone it and then I had to install boost from this exact version:
[https://sourceforge.net/projects/boost/files/boost-binaries/1.67.0/boost_1_67_0-msvc-14.1-64.exe/download]

from ashamanecore.

Grimmy347 avatar Grimmy347 commented on September 27, 2024

It should probably be included on the readme what version to use so someone does not have the same issue as me in the future. Thank you so much for the help though!!

from ashamanecore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.