Guestbook

Here you can leave a comment for the site's owner regarding the site's content, appearance, functioning and, generally, write whatever you think on this. Please stay on topic (“on this” doesn't mean “on anything”) and respect the others.

Please note you can also contact the site's owner using the feedback page.

Please note that premoderation is in effect here.


anonymous

From Vbit (unverified) Sun May 10 18:21:51 2026 UTC

pencil

Error

alya/$ make
cc -Wall -g -c main.c -o main.o
cc -Wall -g -c lexan.c -o lexan.o
cc -Wall -g -c syntan.c -o syntan.o
cc -Wall -g -c refal_fsm.c -o refal_fsm.o
cc -Wall -g -c pmatch.c -o pmatch.o
cc -Wall -g -c builtin.c -o builtin.o
cc -Wall -g -c exp.c -o exp.o
exp.c: In function ‘is_balanced’:
exp.c:78:14: error: expected identifier or ‘*’ before ‘false’
   78 |         goto false;
      |              ^~~~~
exp.c:96:1: warning: statement with no effect [-Wunused-value]
   96 | false:
      | ^~~~~
exp.c:96:6: error: expected ‘;’ before ‘:’ token
   96 | false:
      |      ^
      |      ;
exp.c:106:1: warning: control reaches end of non-void function [-Wreturn-type]
  106 | }
      | ^
make: *** [Makefile:16: exp.o] Error 1
alya/$

To fix the error, I had to force make to use gcc with the -ansi flag (I also added -pedantic just in case), otherwise the standard cc compiler complains about the program text not conforming to some modern standard.

It would be better to set CC to gcc -ansi -pedantic by default in the Makefile rather than relying on the symlink.

no userpic

From Koshelkov Pjotr profile Sun May 10 21:15:06 2026 UTC in reply to this comment

pencil

Re: Error

Well, with -ansi it complains about ``absence'' of strdup...

However, I added -ansi -pedantic flags, along with -fdiagnostics-color=never -fno-diagnostics-show-caret. It will be released in the next version.

Thanks for your report.


pencil