USB CDC for STM32F072B Discovery Board
you may be missing the path to your include files. You can manually add it by going to Project->Properties, select C/C++Build->Settings. Then on the folder menu that opens click on MCU GCC Compiler->Includes. You'll see a list of the locations it looks for include files. Add a link to the directory that contains the header files you need.