Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   cam_uart_buffer (http://www.chiefdelphi.com/forums/showthread.php?t=43695)

CalvinEiber 10-02-2006 11:16

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?

Alan Anderson 10-02-2006 11:35

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.


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

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