Comments (7)
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.
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.
/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.
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.
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.
Should be "fixed" (not that I'd call this a bug). Have fun with the horror show that is X11.
from cereal.
Yay !!! X11 sucks hard...
Thanks !
from cereal.
Related Issues (20)
- c++20 std::span support
- Binary Serialization of String is still a readable string HOT 3
- Embedded RapidJSON can conflict with another RapidJSON used by the client (ODR violation!)
- Compilation error with struct as smat_pointer
- How to deserialize std::vector with XMLInputArchive
- Macos Build error: cannot bind lvalue of type unsigned long long to value of unrelated type unsigned long HOT 1
- I encountered a segmentation fault when processing XML file data with version 1.3.2 of Cereal. Could this be a security vulnerability
- pkg-config file
- std::aligned_storage is deprecated in C++23 HOT 1
- GCC 13.2 build error: possible dangling reference to a temporary HOT 2
- About the use of CEREAL_CLASS_VERSION HOT 1
- types/tuple.hpp does not compile on MSVC2019
- copy constructor is implicitly deleted because 'OutputArchiveBase' has a user-declared move constructor HOT 1
- Issue with closing braces in JSON using std::stringstream HOT 1
- Any plans for a new version?
- Is there a way to register polymorphic types during program execution? HOT 3
- How do I remove excess layers HOT 1
- RapidJson causes C5054 on MSVC
- JSONOutputArchive destructor is not really noexcept(true) despite it's declared noexcept(true)
- cereal unable to export xml comments
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cereal.