Running go build on a project using objectbox-go causes a compiler error when using gcc 4.8.5 on CentOS 7.
Basic info
ObjectBox version: 1.2.0
Reproducibility: always
Device: VPS
OS: CentOS 7
How to reproduce
Install gcc on CentOS yum install gcc
Install Objectbox (I used the bash quick install script here)
build a project that uses objectbox
Expected behavior
Project builds into executable
Logs, stack traces
# github.com/objectbox/objectbox-go/objectbox
/root/go/pkg/mod/github.com/objectbox/objectbox-go@v1.2.0/objectbox/c-arrays.go: In function 'freeCharArray':
/root/go/pkg/mod/github.com/objectbox/objectbox-go@v1.2.0/objectbox/c-arrays.go:32:5: error: 'for' loop initial declarations are only allowed in C99 mode
for (size_t i = 0; i < size; i++) {
^
/root/go/pkg/mod/github.com/objectbox/objectbox-go@v1.2.0/objectbox/c-arrays.go:32:5: note: use option -std=c99 or -std=gnu99 to compile your code
Description
Running
go build
on a project using objectbox-go causes a compiler error when using gcc 4.8.5 on CentOS 7.Basic info
How to reproduce
Install gcc on CentOS
yum install gcc
Install Objectbox (I used the bash quick install script here) build a project that uses objectboxExpected behavior
Project builds into executable
Logs, stack traces