View Single Post
  #8   Spotlight this post!  
Unread 03-02-2008, 01:14
Chaos in a Can Chaos in a Can is offline
Joel Spadin
FRC #1736 (Robot Casserole)
Team Role: Programmer
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Peoria, IL
Posts: 58
Chaos in a Can is an unknown quantity at this point
Send a message via MSN to Chaos in a Can
Re: Calling functions from other documents

You don't need to include "encoder.c", and in fact, you probably shouldn't.

I don't think that's the problem, but if you include a .c file, you're probably going to get an error about something like multiple declarations of something.

The headers tells the file that a function exists somewhere in one of the .c files. The actual code for that function doesn't need to be in the same .c file the function is used in.
__________________
2006 Xerox Creativity Award
2007 General Motors Industrial Design Award
2008 Judges' Award
2009 Chrysler Team Spirit Award