Quote:
|
Originally Posted by Tridelvior
Hmm..thats interesting.
Now I've got the same error but different place.
Its now within the user_routines_fast.c (Thats the only place where "#pragma code InterruptVectorLow" is.)
This probably has an obvious answer..but what does it mean?
|
Don't #include any of your .c files.
Now you have #include "user_routines_fast.c" somewhere...
The real answer is to #include .h files only.
.h files usually only reference things that will be defined elsewhere and the names won't conflict if they are mentioned in more than one file. It just lets the different files know they are talking about the same "thing."
.c files on the other hand actually create "things" and if you try creating the same thing twice (by including the .c file) the compiler won't know which of two routine "x"'s you really wanted it to execute.