src-d / hercules

Gaining advanced insights from Git repository history.
Other
2.63k stars 334 forks source link

'for' loop initial declarations are only allowed in C99 mode (make Error 2) #359

Closed M2ohamad closed 4 years ago

M2ohamad commented 4 years ago

After cloning and cd, make results in this: Is there a way to easily set CFLAGS? I tried adding CLFAGS=-std=c99 inside the Makefile but to no avail.

image
M2ohamad commented 4 years ago

Fixed by adding "export CC=c99" to my $HOME/.bashrc a better way is to write run make with these parameters: make CGO_CFLAGS="-std=gnu99" Getting another issue but marking this one as closed