Hi,
I got the below error while am make a file on Hercules.thanks in advance.
Error
go build -tags "" -ldflags "-X gopkg.in/src-d/hercules.v10.BinaryGitHash=f066cf008318b80fcc219886b2430f7a186e4e94" gopkg.in/src-d/hercules.v10/cmd/hercules
github.com/smacker/go-tree-sitter
In file included from get_changed_ranges.c:3:0:
./language.h: In function ‘ts_language_lookup’:
./language.h:67:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (unsigned i = 0; i ^
./language.h:67:5: note: use option -std=c99 or -std=gnu99 to compile your code
./language.h:70:7: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (unsigned i = 0; i ^
get_changed_ranges.c: In function ‘ts_range_array_intersects’:
get_changed_ranges.c:28:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (unsigned i = start_index; i size; i++) {
^
get_changed_ranges.c: In function ‘iterator_descend’:
get_changed_ranges.c:205:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (uint32_t i = 0, n = ts_subtree_child_count(*entry.subtree); i ^
make: *** [hercules] Error 2
Hi, I got the below error while am make a file on Hercules.thanks in advance.
Error go build -tags "" -ldflags "-X gopkg.in/src-d/hercules.v10.BinaryGitHash=f066cf008318b80fcc219886b2430f7a186e4e94" gopkg.in/src-d/hercules.v10/cmd/hercules
github.com/smacker/go-tree-sitter
In file included from get_changed_ranges.c:3:0: ./language.h: In function ‘ts_language_lookup’: ./language.h:67:5: error: ‘for’ loop initial declarations are only allowed in C99 mode for (unsigned i = 0; i ^ ./language.h:67:5: note: use option -std=c99 or -std=gnu99 to compile your code ./language.h:70:7: error: ‘for’ loop initial declarations are only allowed in C99 mode for (unsigned i = 0; i ^ get_changed_ranges.c: In function ‘ts_range_array_intersects’: get_changed_ranges.c:28:3: error: ‘for’ loop initial declarations are only allowed in C99 mode for (unsigned i = start_index; i size; i++) { ^ get_changed_ranges.c: In function ‘iterator_descend’: get_changed_ranges.c:205:5: error: ‘for’ loop initial declarations are only allowed in C99 mode for (uint32_t i = 0, n = ts_subtree_child_count(*entry.subtree); i ^ make: *** [hercules] Error 2