marcizhu / Cereal

A simple & fast serialization library written for C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Linux compatibility

marcizhu opened this issue · comments

commented

The compatibility with Linux has been tested (Linux Mint 18.1 kernel 4.4.0-53-generic.; gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)) and I found some compilation issues. Those have been fixed, but the files must be added before the next release.

Also the wiki page should be updated with the new supported environment once this is issue is closed.

Compilation options: g++ -std=c++11 -ICereal/Cereal/ ./Sandbox/Sandbox.cpp -o Sandbox/Sandbox -m32 from the top folder.

NOTE: Only tested x86 compilation. x64 should throw an error, as long (and unsigned long) is defined as 8 bytes long for x64, and not 4 bytes. This should be tested on Windows, and Internal.h should also be updated according to the different data type sizes on different platforms.

commented

Fixed in last commit.

commented

64-bit compilation tested and everything is working fine. Removed long and unsigned long static assertions, as this data types are never used.