Go to Post FIRST, in itself, will not make you an engineer. - RogerR [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 08-02-2008, 16:40
bronxbomber92 bronxbomber92 is offline
Registered User
FRC #1551 (Grapes of Wrath)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Naples
Posts: 75
bronxbomber92 is an unknown quantity at this point
Multiple Definitions

I've created a new file, where I keep all of this years code. When I compile my project I get an error saying symbol 'ReleasingBall' has multiple definitions.

Here's how my files are organized:

custom_routines.h
Code:
#ifndef _CUSTOM_ROUTINES_H_
#define _CUSTOM_ROUTINES_H_

//...
bool ReleasingBall;
//...
#endif
custom_routines.c
Code:
#include <timer.h>
#include "custom_routines.h"

// function definitions
user_routines.h
Code:
//..
#include "custom_routines.h" 

// all of my custom code is commented out, so beside the above include directive, everything is in its original state
Why am I getting this error, the include guards should be preventing this problem!
 


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
Short definitions of overdrive HedlessChkn General Forum 3 13-01-2008 21:52
Hosting multiple sites in multiple VMs EHaskins Website Design/Showcase 6 22-12-2007 01:09
Error - symbol 'command_list' has multiple definitions. Moloch Programming 2 17-02-2005 17:32
Error - symbol 'e' has multiple definitions. HELLPPPPP BookerT Programming 2 24-01-2005 21:50


All times are GMT -5. The time now is 18:14.

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