You have two 'entities' instantiated in the code for your 'compinst' module. They are modules called 'dff' and 'a_74151b'.
Quartus can find the code that describes how 'dff' works but doesn't know where to find the code for 'a_74151b'.
You need to add a path to the project telling Quartus where to find that code. With your project open, goto: 'Project' -> 'Add/Remove Files in Project...'. Locate the module via the browser button and add it to the project.
If you're still having problems perhaps you can identify which 'ALTERA Verilog manual' you're looking at.
Regards,
Alex