fabianishere / brainfuck

Brainfuck interpreter written in C
Apache License 2.0
536 stars 74 forks source link

I get a fatal error when I try to run 'make' #73

Closed humleflue closed 4 years ago

humleflue commented 4 years ago

I get the following error message:

[ 33%] Built target brainfuck
Scanning dependencies of target brainfuck-cli
make[2]: Warning: File 'CMakeFiles/brainfuck-cli.dir/depend.make' has modification time 0.77 s in the future
[ 50%] Building C object CMakeFiles/brainfuck-cli.dir/src/main.c.o
/mnt/c/GitRepos/brainfuck/src/main.c:23: warning: "BRAINFUCK_EDITLINE_LIB" redefined
   23 |  #define BRAINFUCK_EDITLINE_LIB
      |
<command-line>: note: this is the location of the previous definition
/mnt/c/GitRepos/brainfuck/src/main.c:24:11: fatal error: editline/readline.h: No such file or directory
   24 |  #include <editline/readline.h>
      |           ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/brainfuck-cli.dir/build.make:63: CMakeFiles/brainfuck-cli.dir/src/main.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:126: CMakeFiles/brainfuck-cli.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

I am following the readme guide. And I get the error both in on MinGW on windows and in WSL. If I'm the one doing something wrong, then please tell me what.

Thanks in advance.

rien333 commented 4 years ago

Do you have the appropriate readline library installed?

humleflue commented 4 years ago

I'm not sure what you mean. How can I check that. It's not in the repo - no.

humleflue commented 4 years ago

Running sudo apt-get install libedit-dev did the job