tuio_cpp issueshttps://gitlab.cristal.univ-lille.fr/pirvi-public/tuio_cpp/-/issues2021-06-04T13:55:40+02:00https://gitlab.cristal.univ-lille.fr/pirvi-public/tuio_cpp/-/issues/1Integer literals has not the required size on MingW2021-06-04T13:55:40+02:00Dauster GuillaumeInteger literals has not the required size on MingWThe issue appear when including `TuioServer.h`. TUIO tell us that integer literals should be in a specific size.
Start on line 164 of `OscOutboundPacketStream.cpp`
```
// sanity check integer types declared in OscTypes.h
// yo...The issue appear when including `TuioServer.h`. TUIO tell us that integer literals should be in a specific size.
Start on line 164 of `OscOutboundPacketStream.cpp`
```
// sanity check integer types declared in OscTypes.h
// you'll need to fix OscTypes.h if any of these asserts fail
assert( sizeof(osc::int32) == 4 );
assert( sizeof(osc::uint32) == 4 );
assert( sizeof(osc::int64) == 8 );
assert( sizeof(osc::uint64) == 8 );
```
The proposed solution is adding typedef in `OscTypes.h`
```
#elif defined(__WIN32__) || defined(WIN32) || defined(_WIN32)
#include <stdint.h>
typedef int64_t int64;
typedef uint64_t uint64;
```
*int64_t* and *uint64_t* are 8 bytes long.
See the provided patch [tuio_mingw.patch](/uploads/c2d4414cd01c4f604512bd6b1568c462/tuio_mingw.patch)