|
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
|