View Single Post
  #6   Spotlight this post!  
Unread 01-04-2004, 17:49
wun's Avatar
wun wun is offline
Registered User
AKA: David Wolever
#0865 (Warp7)
Team Role: Programmer
 
Join Date: Dec 2003
Rookie Year: 2001
Location: Toronto
Posts: 84
wun will become famous soon enough
Send a message via AIM to wun Send a message via MSN to wun
Re: multiple definition error in MCC/Linker (possible bug?)

Hey,
Thanks for all the help.
I finally figured out what it was.
When I defined variables in the .h file, it tryed to use them in all the .c files. This, of corse, lead to conflicts.
This could have been fixed by using the extern statement (#extern int drive_mode), or by doing what I did - just putting them in the .c files where they are needed.
I finaly figured this out after and hour or so of looking over/commenting stuff in and out with one of our mentors who works with C.
__________________
Help Microsoft stop piracy. Use Linux!

I have three gmail invitations, message me if you want one