title: VHDL/ModelSim - Could Not Find Entity
body: <p>I am trying to simulate my VHDL file, but am running into the following error:</p>
  
  <pre><code># ** Error: (vcom-11) Could not find work.lab1.
  # 
  # ** Error: (vcom-1195) Cannot find expanded name "work.lab1".
  # 
  # ** Error: Unknown expanded name.
  # ** Error: VHDL Compiler exiting
  # ** Error: c:/altera/12.1/modelsim_ase/win32aloem/vcom failed.
  # Error in macro ./DE2_TOP_run_msim_rtl_vhdl.do line 8
  # c:/altera/12.1/modelsim_ase/win32aloem/vcom failed.
  #     while executing
  # "vcom -93 -work work"
  </code></pre>
  
  <p>I compiled the code successfully through both Quartus II and the ModelSim compiler before attempting to simulate. I do have a lab1 entity and architecture in my code (I can even see it in the Design Units tab of the Quartus Project Navigator), so I don't really understand this error. Anyone know what's causing this?</p>