Problem compiling a vhdl file

I have ha.vhdl and ha_tb.vhdl files in one of my directory and I made a makefile in which the commands goes this way

ha: ha.vhdl ha_tb.vhdl ghdl -a $(GHDL_ARGS) $^ ghdl -e $(GHDL_ARGS) $@
clean: rm *.o *.cf

As I run ghdl -s command for ha.vhdl and ha_tb.vhdl it shows show no compilation errors.

After running the make command it goes in terminal this way:

/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
ghdl: compilation error

Can anyone please point out what am I missing ? Or someone say if there is any alternative? Thnx in advance !!!!

2 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like