View Single Post
  #4   Spotlight this post!  
Unread 11-02-2004, 16:56
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,746
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Non Overlay and absolute? Help.

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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 11-02-2004 at 17:06.