![]() |
Re: Compiler Help Needed
Quote:
|
Re: Compiler Help Needed
Quote:
|
Re: Compiler Help Needed
Quote:
#define PI 22 / 7 #define DIAMETER 10 circ = DIAMATER * PI; /* circ = 10 * 22 / 7 */ |
Re: Compiler Help Needed
Ok, thanks for the info guys, but my problem still isn't fixed. I still get the error about having multiple definitions, even though I don't. I have included the preprocessor directives #ifndef, #define, #endif to prevent such nonsense from bothering me, but to no avail. I have written several functions that I NEED to make my robot work right, and it is extremely frustrating to have the compiler return errors that are unfounded.
:mad: Please help! My code is presented on the previous page, and I don't want to re-post it because it is long... Please check it out and tell me why the function "newValue" keeps coming up as having "multiple definitions"! :confused: Thanx in advance!!!!!! |
Re: Compiler Help Needed
notice that the error you are getting is a link error - this means that the multiple definitions are in different files - are you sure you didn't accidentally name something (even a variable) newValue somewhere else?
|
Re: Compiler Help Needed
Quote:
You need to post or email one of us your whole project as a zip file. Strip out the project and .o files before you Winzip it if you need to keep the size down. |
Re: Compiler Help Needed
I don't know. It looks like the only defs are the prototype and the actual code. I would say try putting the prototype in the same file as the sub.
|
Re: Compiler Help Needed
Quote:
|
Re: Compiler Help Needed
All right guys, it seems to be working now. I just deleted all #include "userutilities.c" directives and replaced them with #include "userutilities.h" directive where necessary.
So... now I am no longer getting the "multiple definition" errors that were driving me insane. Thanks for your help!!! :D |
Re: Compiler Help Needed
Quote:
Now that you're no longer being driven insane, how are you getting there?;) Good Luck! |
| All times are GMT -5. The time now is 23:58. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi