This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Weird DWORD error

Hi,

I am stuck with a very strange error and was wondering if anyone can help. I have been given the task of updating a USB stack used in our firmware: elm-chan.org/.../00index_e.html

I downloaded the latest source, linked it in to the poroject in place of the previous version and am now getting an error from the line:

typedef unsigned long   DWORD;

Looking at the previous version of the code this line was:

typedef unsigned long   FFDWORD;

Sure enough, changing the name to anything except DWORD seems to work like a charm, but will require me to track down the rather large number of instances of DWORD and change them to something else. More importantly,

typedef unsigned long      DWORD;

should work!

I am using keil uVision V3.31 and am stuck using that version as the code doesn't compile correctly on later versions.

Does anyone have any ideas? Is this a Keil 3.31 bug, or have I just not set something correctly?

Any help is much appreciated.

Parents
  • You say you're getting an error, but unfortunately I don't see you giving details of that error.

    It's likely going to be a re-definition. What is it previously (you may have to look through a pre-processor listing to find this)? if it is the same (or comparable) you could maybe consider commenting out the one currently giving the error.

Reply
  • You say you're getting an error, but unfortunately I don't see you giving details of that error.

    It's likely going to be a re-definition. What is it previously (you may have to look through a pre-processor listing to find this)? if it is the same (or comparable) you could maybe consider commenting out the one currently giving the error.

Children