Go to Post I think one of they beauties of the program is how it can include so many different interests our students have. - Doc Wu [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 08-02-2004, 22:07
KevinB's Avatar
KevinB KevinB is offline
Registered User
AKA: Alum
no team
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2001
Location: AL
Posts: 188
KevinB will become famous soon enoughKevinB will become famous soon enough
Send a message via ICQ to KevinB
Re: Compiler Help Needed

Quote:
Originally Posted by deltacoder1020
... just do what some crazy state legislature tried to do ...
Although Alabama's state legislature is pretty darn stupid somtimes ... the story that floated around the internet about us trying to do that .... is fake.
  #17   Spotlight this post!  
Unread 08-02-2004, 23:59
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Compiler Help Needed

Quote:
Originally Posted by KevinB
Although Alabama's state legislature is pretty darn stupid somtimes ... the story that floated around the internet about us trying to do that .... is fake.
i'm not talking about alabama.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #18   Spotlight this post!  
Unread 09-02-2004, 11:09
Jeff McCune's Avatar
Jeff McCune Jeff McCune is offline
Alpha Geek
#0677 (The Wirestrippers)
Team Role: Mentor
 
Join Date: Jan 2003
Location: The Ohio State University
Posts: 67
Jeff McCune is on a distinguished road
Send a message via ICQ to Jeff McCune Send a message via AIM to Jeff McCune
Re: Compiler Help Needed

Quote:
Originally Posted by Random Dude
Umm.. But (22/7) evaluates to (3).
My #define shouldn't include ( )'s. Then, if you use PI in an equation, it'll work just fine even though it's integer math.

#define PI 22 / 7
#define DIAMETER 10

circ = DIAMATER * PI; /* circ = 10 * 22 / 7 */
__________________
Team 677 - The Wirestrippers - Columbus School for Girls and The Ohio State University
EMAIL: mccune@ling.ohio-state.edu

...And all you touch and all you see
Is all your life will ever be...
  #19   Spotlight this post!  
Unread 09-02-2004, 12:14
Darkman_X000 Darkman_X000 is offline
Registered User
#0612
 
Join Date: Feb 2004
Location: Chantilly, VA
Posts: 8
Darkman_X000 is an unknown quantity at this point
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   Spotlight this post!  
Unread 09-02-2004, 12:39
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
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?
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #21   Spotlight this post!  
Unread 09-02-2004, 13:25
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Compiler Help Needed

Quote:
Originally Posted by Darkman_X000
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!!!!!!
The code you posted here compiles without a problem.
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #22   Spotlight this post!  
Unread 10-02-2004, 07:35
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
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   Spotlight this post!  
Unread 10-02-2004, 11:16
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: Compiler Help Needed

Quote:
Originally Posted by Mark McLeod
The code you posted here compiles without a problem.
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.
I second the motion. There must be something going behind the scenes of what you've shown us.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #24   Spotlight this post!  
Unread 10-02-2004, 12:15
Darkman_X000 Darkman_X000 is offline
Registered User
#0612
 
Join Date: Feb 2004
Location: Chantilly, VA
Posts: 8
Darkman_X000 is an unknown quantity at this point
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   Spotlight this post!  
Unread 10-02-2004, 12:19
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Compiler Help Needed

Quote:
Originally Posted by Darkman_X000
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!!!
That makes sense.

Now that you're no longer being driven insane, how are you getting there?

Good Luck!
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 10-02-2004 at 12:38.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 03:58.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi