|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
Re: Compiler Help Needed
Quote:
![]() |
|
#17
|
||||
|
||||
|
Re: Compiler Help Needed
Quote:
|
|
#18
|
||||
|
||||
|
Re: Compiler Help Needed
Quote:
#define PI 22 / 7 #define DIAMETER 10 circ = DIAMATER * PI; /* circ = 10 * 22 / 7 */ |
|
#19
|
|||
|
|||
|
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.
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"! Thanx in advance!!!!!! |
|
#20
|
||||
|
||||
|
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?
|
|
#21
|
|||||
|
|||||
|
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. |
|
#22
|
|||||
|
|||||
|
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.
|
|
#23
|
|||||
|
|||||
|
Re: Compiler Help Needed
Quote:
|
|
#24
|
|||
|
|||
|
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!!! ![]() |
|
#25
|
|||||
|
|||||
|
Re: Compiler Help Needed
Quote:
Now that you're no longer being driven insane, how are you getting there? Good Luck! Last edited by Mark McLeod : 10-02-2004 at 12:38. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C compiler for 2004 | Tim Skloss | Technical Discussion | 11 | 05-11-2003 22:02 |
| C compiler for 2004 | Tim Skloss | Robotics Education and Curriculum | 2 | 04-11-2003 16:19 |
| The Grand FIRST team.. programmers and others needed | randomperson | Programming | 0 | 31-05-2003 23:46 |
| Weight needed to tilt bridge... | archiver | 2001 | 4 | 23-06-2002 23:43 |
| Inventor 5.0 help needed | Larry Barello | Inventor | 4 | 27-01-2002 10:54 |