View Single Post
  #6   Spotlight this post!  
Unread 02-02-2006, 12:38
Smithvillefirst Smithvillefirst is offline
Anthony Peck
FRC #1806 (Smithville First)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Smithville
Posts: 9
Smithvillefirst is an unknown quantity at this point
Re: Using vars across multiple .c files

That's what I was looking for. Everything compiled just fine. Thanks a bunch!

Quote:
Originally Posted by Alan Anderson
That's exactly backwards. You should put the extern declaration in the .h file, and actually define the variable in only one .c file.
__________________
Anthony Peck
Integration Manager
Team 1806