Hi,
Yes, I should have set up the project better. To get this to work you will need to change some paths in the project. The new paths will depend on where the USB firmware library is on your PC.
Go to Project, Properties, Application Options, Directories, Include Directories. You should see the following:-
'.\..\..\include;.\..\..\..\..\library\inc;$(RkitLib)\ARM\include'
1) '$(RkitLib)\ARM\include' points to the main ST firmware library header files and should be the same on your machine as it is on mine.
2) '.\..\..\include' points to the header files in our project folder ('hw_config.h', etc.). This should be OK too.
3) '.\..\..\..\..\library\inc' points to the USB library header files ('usb_core.h', etc.). This will need to be changed to point to the correct directory on your machine.
Also, you will need to remove the files 'usb_core.c', 'usb_init.c', 'usb_int.c', 'usb_mem.c' and 'usb_regs.c' from the 'USBlib' node in the project explorer window/tab. Once you have done this, you will need to locate the 5 files in the USB library on your PC and add the 5 files back to the project.
I'm sorry this is so messy. I should have thought about this before I uploaded. This will fix it though!
Regards, Nick.