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:


#include camera.h

extern unsigned char cam_uart_buffer];"


and another in user_camera.c:


unsigned char cam_uart_buffer[64];


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?

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.