llvm toy example error

41 views Asked by At

I am trying to run the make file of the toy example given here, but it gives me the following error:

g++ -o parser parser.o codegen.o main.o tokens.o corefn.o native.o  `llvm-config
--libs` `llvm-config --ldflags` -lpthread -ldl -L/usr/bin -lz -lncurses -rdynamic

/usr/bin/ld: cannot find -lz
/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
Makefile:31: recipe for target 'parser' failed
make: *** [parser] Error 1

The software I am using is:

  • clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final)
  • Target: x86_64-pc-linux-gnu
  • Thread model: posix
  • InstalledDir: /usr/bin

Ubuntu is a virtual machine running on Windows 8.1.

Any comment will be appreciated.

0

There are 0 answers