Giter Club home page Giter Club logo

ai-arcade's Introduction

I write rust and stuff.

Rust Systems Engineer at Neon Rust Contributor Blog

ai-arcade's People

Contributors

conradludgate avatar

Watchers

 avatar

ai-arcade's Issues

Build fails

I every libsfml* library , but I get this errors when trying to make it

g++ -c -std=c++1z -I include -L include/engine -O3 -DNDEBUG -lengine -lsfml-graphics -lsfml-window -lsfml-system -lsfml-network -o release/main.o src/main.cpp
In file included from include/engine/entity.hpp:5,
                 from include/engine/game.hpp:4,
                 from include/engine/loop.hpp:4,
                 from src/main.cpp:1:
include/engine/event.hpp: In function ‘sf::Packet& engine::operator>>(sf::Packet&, const engine::Event&)’:
include/engine/event.hpp:57:32: error: no match for ‘operator<<’ (operand types are ‘const engine::Event::EventType’ and ‘sf::Packet’)
   57 |                         e.type << p;
      |                         ~~~~~~ ^~ ~
      |                           |       |
      |                           |       sf::Packet
      |                           const engine::Event::EventType
In file included from /usr/include/SFML/Network/Http.hpp:32,
                 from /usr/include/SFML/Network.hpp:34,
                 from include/engine/entity.hpp:4,
                 from include/engine/game.hpp:4,
                 from include/engine/loop.hpp:4,
                 from src/main.cpp:1:
/usr/include/SFML/Network/IpAddress.hpp:294:32: note: candidate: ‘std::ostream& sf::operator<<(std::ostream&, const sf::IpAddress&)’
  294 | SFML_NETWORK_API std::ostream& operator <<(std::ostream& stream, const IpAddress& address);
      |                                ^~~~~~~~
/usr/include/SFML/Network/IpAddress.hpp:294:58: note:   no known conversion for argument 1 from ‘const engine::Event::EventType’ to ‘std::ostream&’ {aka ‘std::basic_ostream<char>&’}
  294 | SFML_NETWORK_API std::ostream& operator <<(std::ostream& stream, const IpAddress& address);
      |                                            ~~~~~~~~~~~~~~^~~~~~
In file included from include/engine/entity.hpp:5,
                 from include/engine/game.hpp:4,
                 from include/engine/loop.hpp:4,
                 from src/main.cpp:1:
include/engine/event.hpp:60:45: error: expected ‘:’ before ‘,’ token
   60 |                                 case KeyDown, KeyUp:
      |                                             ^
include/engine/event.hpp:60:45: error: expected primary-expression before ‘,’ token
include/engine/event.hpp:60:52: error: found ‘:’ in nested-name-specifier, expected ‘::’
   60 |                                 case KeyDown, KeyUp:
      |                                                    ^
      |                                                    ::
include/engine/event.hpp:60:47: error: ‘KeyUp’ is not a class, namespace, or enumeration
   60 |                                 case KeyDown, KeyUp:
      |                                               ^~~~~
include/engine/event.hpp:62:46: error: ‘keycode’ was not declared in this scope
   62 |                                         p >> keycode;
      |                                              ^~~~~~~
include/engine/event.hpp:65:48: error: ‘const class engine::Event’ has no member named ‘alt’
   65 |                                         p >> e.alt;
      |                                                ^~~
include/engine/event.hpp:66:48: error: ‘const class engine::Event’ has no member named ‘control’
   66 |                                         p >> e.control;
      |                                                ^~~~~~~
include/engine/event.hpp:67:48: error: ‘const class engine::Event’ has no member named ‘shift’
   67 |                                         p >> e.shift;
      |                                                ^~~~~
include/engine/event.hpp:68:48: error: ‘const class engine::Event’ has no member named ‘system’
   68 |                                         p >> e.system;
      |                                                ^~~~~~
include/engine/event.hpp:71:47: error: expected ‘:’ before ‘,’ token
   71 |                                 case MouseDown, MouseUp:
      |                                               ^
include/engine/event.hpp:71:47: error: expected primary-expression before ‘,’ token
include/engine/event.hpp:71:56: error: found ‘:’ in nested-name-specifier, expected ‘::’
   71 |                                 case MouseDown, MouseUp:
      |                                                        ^
      |                                                        ::
include/engine/event.hpp:71:49: error: ‘MouseUp’ is not a class, namespace, or enumeration
   71 |                                 case MouseDown, MouseUp:
      |                                                 ^~~~~~~
include/engine/event.hpp:73:46: error: ‘button’ was not declared in this scope
   73 |                                         p >> button;
      |                                              ^~~~~~
include/engine/event.hpp:80:57: error: assignment of member ‘sf::Event::MouseButtonEvent::x’ in read-only object
   80 |                                         e.mouseButton.x = x;
      |                                         ~~~~~~~~~~~~~~~~^~~
include/engine/event.hpp:81:57: error: assignment of member ‘sf::Event::MouseButtonEvent::y’ in read-only object
   81 |                                         e.mouseButton.y = y;
      |                                         ~~~~~~~~~~~~~~~~^~~
include/engine/event.hpp:85:51: error: redeclaration of ‘sf::Int32 x’
   85 |                                         sf::Int32 x, y;
      |                                                   ^
include/engine/event.hpp:77:51: note: ‘sf::Int32 x’ previously declared here
   77 |                                         sf::Int32 x, y;
      |                                                   ^
include/engine/event.hpp:85:54: error: redeclaration of ‘sf::Int32 y’
   85 |                                         sf::Int32 x, y;
      |                                                      ^
include/engine/event.hpp:77:54: note: ‘sf::Int32 y’ previously declared here
   77 |                                         sf::Int32 x, y;
      |                                                      ^
include/engine/event.hpp:88:55: error: assignment of member ‘sf::Event::MouseMoveEvent::x’ in read-only object
   88 |                                         e.mouseMove.x = x;
      |                                         ~~~~~~~~~~~~~~^~~
include/engine/event.hpp:89:55: error: assignment of member ‘sf::Event::MouseMoveEvent::y’ in read-only object
   89 |                                         e.mouseMove.y = y;
      |                                         ~~~~~~~~~~~~~~^~~
include/engine/event.hpp:96:61: error: assignment of member ‘sf::Event::MouseWheelScrollEvent::wheel’ in read-only object
   96 |                                         e.mouseScroll.wheel = wheel;
      |                                         ~~~~~~~~~~~~~~~~~~~~^~~~~~~
include/engine/event.hpp:98:60: error: binding reference of type ‘float&’ to ‘const float’ discards qualifiers
   98 |                                         p >> e.mouseScroll.delta;

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.