The text of the error will look similar to:
Error: VHDL Use Clause error at <filename>.vhd: design library does not contain primary unit dspbuilder block
Error: Ignored construct <entity name> at <filename>.vhd because of previous errors
To compile DSP Builder generated VHDL files in Quartus II, you must have the path to the DSPBUILDERPACK.vhd and DSPBUILDER.vhd files specified in your Quartus II project. These files are located in the <DSP Builder install directory>\altlib directory.
To add these files, select Add/Remove Files in Project... under the Project menu in Quartus II. Browse to the <DSP Builder install directory>\altlib directory and select the DSPBUILDERPACK.vhd and DSPBUILDER.vhd files and click OK to add the files. The compilation order of the files is important. DSPBUILDERPACK.vhd must be compiled before DSPBUILDER.vhd. Once you have included the files, rerun your Quartus II compile.