chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.97k stars 1.22k forks source link

Asio.hpp is Riddled with errors (also with config.hpp) #1553

Open NahilTheDolfin opened 3 weeks ago

NahilTheDolfin commented 3 weeks ago

So I'm working on an anonymous project. And also.hpp has at least 182 errors config has 8 only. And I wonder how to fix this please.Capture_decran_2024-10-30_232536.png

klemens-morgenstern commented 2 weeks ago

This one should be used in a textbook about how to not write issues on github.

joaotavora commented 2 weeks ago

@NahilTheDolfin you have to add (a lot) more information about what you're trying to do with ASIO. What version you're using, how you are compiling, and more. This is sometimes known as a MRE (https://en.wikipedia.org/wiki/Minimal_reproducible_example) If you don't do that the chances that someone is going to go out of their way to guess what your problem is are extremely slim.

NahilTheDolfin commented 1 week ago

@joaotavora I guess I should set the whole asio thing up before restarting I guess

NahilTheDolfin commented 1 week ago

@joaotavora Thank you for the advice! Here’s some additional context:

Goal: I’m using Asio to set up a node server and node client for a cryptocurrency project I’m building. The purpose is to manage decentralized network communication where nodes can validate transactions and share block data across the network.

Details

  1. What I’m trying to do:

Set up asynchronous communication between nodes.

Handle multiple incoming and outgoing connections simultaneously for real-time updates.

Support both a node server (for handling requests) and a node client (for connecting users to the network).

  1. Asio Version: 1.30.2

  2. Compiler/IDE: GCC

Compiler: GCC IDE: Visual Studio Code

OS: Windows 11