GithubHelp home page GithubHelp logo

rapidjson compiletime errors about cereal HOT 7 CLOSED

erSitzt avatar erSitzt commented on July 17, 2024
rapidjson compiletime errors

from cereal.

Comments (7)

erSitzt avatar erSitzt commented on July 17, 2024 1

I'm using the master branch.
The error occurs as soon as i include "cereal/archives/json.hpp"
and it seems thats happening because i'm using another library which includes Xlib.h, which defines Bool as follows :
#define Bool int

from cereal.

AzothAmmo avatar AzothAmmo commented on July 17, 2024

What is the error you get? Is it possible for you to test using GCC 4.7.3? Are you using the development version or the release version of cereal?

from cereal.

erSitzt avatar erSitzt commented on July 17, 2024

/home/ersitzt/libraries/cereal/include/cereal/external/rapidjson/writer.h: At global scope:
/home/ersitzt/libraries/cereal/include/cereal/external/rapidjson/writer.h:53:10: error: expected unqualified-id before ‘int’
/home/ersitzt/libraries/cereal/include/cereal/external/rapidjson/writer.h:53:8: error: expected ‘;’ at end of member declaration
/home/ersitzt/libraries/cereal/include/cereal/external/rapidjson/writer.h:53:15: error: expected unqualified-id before ‘bool’
/home/ersitzt/libraries/cereal/include/cereal/external/rapidjson/writer.h:53:15: error: expected ‘)’ before ‘bool’

I've just cloned your git repository and it seems i've overlooked the hint on GCC 4.7.3 as a minimum, sorry !

Upgrading is not possible at the moment.

from cereal.

AzothAmmo avatar AzothAmmo commented on July 17, 2024

This still isn't really enough information to help you out - can you post the code you are trying to compile? Are you using the master or development branch? I'm not sure GCC 4.7.3 is strictly required (4.7.2 may work, I have no idea).

The easiest way to help you is if you can provide: a minimum example to reproduce your error, the exact version of cereal you are using, and the command you are using to compile.

from cereal.

Devacor avatar Devacor commented on July 17, 2024

That seems like a pretty mean thing for that other library to do.

On Sun, Jan 5, 2014 at 3:01 PM, erSitzt [email protected] wrote:

I'm using the master branch.
The error occurs as soon as i include "#include "
and it seems thats happening because i'm using another library which
includes Xlib.h, which defines Bool as follows :
#define Bool int


Reply to this email directly or view it on GitHubhttps://github.com//issues/40#issuecomment-31618589
.

from cereal.

AzothAmmo avatar AzothAmmo commented on July 17, 2024

Should be "fixed" (not that I'd call this a bug). Have fun with the horror show that is X11.

from cereal.

erSitzt avatar erSitzt commented on July 17, 2024

Yay !!! X11 sucks hard...
Thanks !

from cereal.

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.