Error: previously defined in... WHERE??? (CW10.x)

Discussion created by FridgeFreezer on Mar 14, 2012
Latest reply on Mar 27, 2012 by Leong

While tracking down a problem in my project, I hit compile and got a stream of errors from all sorts of places claiming all sorts of things were "previously defined in", but with NO indication what is previously defined or where CW thinks it was defined.


This is by no means a new trait of CW, but this flurry of errors has pushed me to post about it.


Presumably the compiler must have *some* clue where it last saw a declaration or definition?



It also doesn't give any sort of indication which part of a declaration has upset it, for example it's upset about this line:

char WReadSRec(struct sys_struct *sys, char *str)

 But doesn't tell me if the function or structure is the problem.


This makes finding the root cause much more of a hunt than it need be.


Note: As it turned out a mangled typedef was at fault, hence why it knocked on multiple files, but very hard to tell that from the stream of errors spewing forth.