I have opened the example bootloader project for a Psoc5LP devices and build it with no errors. Yet when I create my own project with the same device and the same components in I get compile errors. The main.c file that is generated is diffrent between my project and that of the example project. Why is that? Any help will be appreciated.

You did not specify the "Communication Component" in your BootLoader project as the USB component. The property is set to "Custom Interface" instead which means that you have to provide some functions to interface a component of your own.