GithubHelp home page GithubHelp logo

tba's People

Contributors

gmbows avatar

Stargazers

 avatar

Watchers

 avatar

tba's Issues

error: ‘structure random’ redeclared as different kind of entity

I tried compiling on Arch with kernel 5.10.15 and I'm getting this error on make.

g++ -std=c++11 -c src/ui/Screen.cpp `sdl2-config --libs --cflags` -lSDL2main -lSDL2_image -lpthread -fpermissive -O3 -o bin/Screen.o
In file included from src/ui/../common/../game/World.h:5,
                 from src/ui/../common/Game.h:8,
                 from src/ui/../common/Common.h:2,
                 from src/ui/Screen.cpp:3:
src/ui/../common/../game/Structure.h:14:18: error: ‘structure random’ redeclared as different kind of entity
   14 | extern structure random;
      |                  ^~~~~~
In file included from /usr/include/c++/10.2.0/cstdlib:75,
                 from /usr/include/c++/10.2.0/ext/string_conversions.h:41,
                 from /usr/include/c++/10.2.0/bits/basic_string.h:6535,
                 from /usr/include/c++/10.2.0/string:55,
                 from /usr/include/c++/10.2.0/bits/locale_classes.h:40,
                 from /usr/include/c++/10.2.0/bits/ios_base.h:41,
                 from /usr/include/c++/10.2.0/ios:42,
                 from /usr/include/c++/10.2.0/ostream:38,
                 from /usr/include/c++/10.2.0/iostream:39,
                 from src/ui/../tools/Log.h:2,
                 from src/ui/Font.h:3,
                 from src/ui/Screen.h:3,
                 from src/ui/Screen.cpp:1:
/usr/include/stdlib.h:401:17: note: previous declaration ‘long int random()’
  401 | extern long int random (void) __THROW;
      |                 ^~~~~~
make: *** [makefile:5: bin/Screen.o] Error 1

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.