I compile using a do file script that has a series of vcom commands. These compile the fifo megawizard-generated file (wxr_fifo.vhd) into dut_lib modelsim library. The file that instantiates it (wxr_output.vhd) is also compiled into dut_lib along with all synthesizable source. The testbench top-level (tb_top.vhd) is compiled into work library. The script that invokes the simulator uses work folder (calls vsim work.tb_top ...).
(1.) I tried inserting the following library statements in wxr_output.vhd:
library dut_lib;
use dut_lib.all;
but still get vsim error.
(2.) I tried deleting all compiled modelsim folders & recompiling, but get same error.
(3.) Current Modelsim version is 6.5e on Linux. Tried recompiling everything, including modelsim libraries in version 10.1a & simulating, but get same error.
Note that I have BindAtCompile=0 so default binding is done at load time (the compile script that calls out the hundreds of files to compile doesn't do it in bottom-up order).
Also, the original fifo was compiled in Quartus 5.1. The regenerated code in 6.1.