VHDL - displaying 4 digits on 7-segment display
Cannot read from 'out' object an4 ; use 'buffer' or 'inout'


This error indicates that you're using an old version of the VHDL standard.  The simplest fix is to pass the option that causes the analyzer to use the VHDL-2002 or VHDL-2008 rules.