Go to Post If you build offensively, keep defense in mind always for defense will always keep you in mind. - Molten [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
  #1   Spotlight this post!  
Unread 10-02-2006, 11:16
CalvinEiber CalvinEiber is offline
Registered User
FRC #1308 (Ignatius Wildcats)
Team Role: Leadership
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Cleveland, OH
Posts: 7
CalvinEiber is an unknown quantity at this point
cam_uart_buffer

When I complie the code in MPlab, I get the message
"Error - symbol 'cam_uart_buffer' has multiple definitions."

There are two definitions of this - one in user_routines_fast:

#if _USE_CMU_CAMERA
...
#include camera.h
...
extern unsigned char cam_uart_buffer[];"
...
#endif

and another in user_camera.c:

#if _USE_CMU_CAMERA
...
unsigned char cam_uart_buffer[64];
...
#endif"

I tried removing one, and I got the same message. I removed both, and I got a host of "symbol undefined - cam_uart_buffer"

What should I do?
  #2   Spotlight this post!  
Unread 10-02-2006, 11:35
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: cam_uart_buffer

We get that message after we've moved the code to a new directory. Something is apparently telling the linker to pull in the previous directory's .o files in addition to the new ones. Choosing either Clean or Build all makes it stop.
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


All times are GMT -5. The time now is 01:34.

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