Error in std include

Hi

I have a problem concerning compiling my project in uVision4. If i use an example from ST (since I'm using STM32L-Discovery board) VirtualComport_Loopback everything compiles without a problem (and the program functions as well). But when I try to implement that function (CDC USB communication) into my existing project, I get the Error: #40: expected an identifier and error: #65: expected a ";" that refer to usb_type.h include which is a part of Standard USB FS device library of ST. It is not altered in any way from the one I use with ST example. I added all .h files that are inclued in the example into the project and I can't understand this...

Thank you

Parents
  • Still kicking :)...
    Instead of applying various project settings (Include Paths, preprocessor defines, etc.) from CDC example to my project (they seem to be the same, anyway) I simplified things by making the example my base project. I just copied the essential main.c code to example's main.c file and, of course, copied a few corresponding src and inc files into workspace map and...well, same errors come up.
    I'm pretty sure, I'm just missing something very trivial, because i'm not a very experienced programmer. But I cant figure it out...

    Hasn't any1 had a similar problem here???

Reply
  • Still kicking :)...
    Instead of applying various project settings (Include Paths, preprocessor defines, etc.) from CDC example to my project (they seem to be the same, anyway) I simplified things by making the example my base project. I just copied the essential main.c code to example's main.c file and, of course, copied a few corresponding src and inc files into workspace map and...well, same errors come up.
    I'm pretty sure, I'm just missing something very trivial, because i'm not a very experienced programmer. But I cant figure it out...

    Hasn't any1 had a similar problem here???

Children
More questions in this forum