This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

.\Objects\Adc1.axf: Error: L6200E: Symbol rb multiply defined (by lpc_syetem_init.o and main.o)

Hi,
I have a main.c file as follows:

#include "lpc_system_init.h"
int main(void)
        { uint32_t adc_value;
                System_Init(); // Initialize System
                while(1)
                        { // Start conversion
                                ADC_StartCmd(LPC_ADC, ADC_START_NOW);
                                //Wait conversion complete
                                while (!(ADC_ChannelGetStatus(LPC_ADC, ADC_CHANNEL_4, ADC_DATA_DONE)));
                                adc_value = ADC_ChannelGetData(LPC_ADC, ADC_CHANNEL_4); //Display the result of conversion on the UART0
                                printf(LPC_UART0,"\x1b[1;1H ADC value on channel 4: %d04", adc_value);
                        }
                        return 1;
        }

I am getting 15 errors as:

linking...
.\Objects\Adc1.axf: Error: L6200E: Symbol rb multiply defined (by lpc_syetem_init.o and main.o).
.\Objects\Adc1.axf: Error: L6200E: Symbol rb multiply defined (by lpc17xx_adc.o and main.o).
.\Objects\Adc1.axf: Error: L6200E: Symbol rb multiply defined (by lpc17xx_gpio.o and main.o).
.\Objects\Adc1.axf: Error: L6200E: Symbol rb multiply defined (by lpc17xx_systick.o and main.o).
.\Objects\Adc1.axf: Error: L6200E: Symbol rb multiply defined (by lpc17xx_uart.o and main.o).
.\Objects\Adc1.axf: Error: L6200E: Symbol EscFlag multiply defined (by lpc_syetem_init.o and main.o).
.\Objects\Adc1.axf: Error: L6200E: Symbol EscFlag multiply defined (by lpc17xx_adc.o and main.o).
.\Objects\Adc1.axf: Error: L6200E: Symbol EscFlag multiply defined (by lpc17xx_gpio.o and main.o).
.\Objects\Adc1.axf: Error: L6200E: Symbol EscFlag multiply defined (by lpc17xx_systick.o and main.o).
.\Objects\Adc1.axf: Error: L6200E: Symbol EscFlag multiply defined (by lpc17xx_uart.o and main.o).
.\Objects\Adc1.axf: Error: L6200E: Symbol TxIntStat multiply defined (by lpc_syetem_init.o and main.o).
.\Objects\Adc1.axf: Error: L6200E: Symbol TxIntStat multiply defined (by lpc17xx_adc.o and main.o).
.\Objects\Adc1.axf: Error: L6200E: Symbol TxIntStat multiply defined (by lpc17xx_gpio.o and main.o).
.\Objects\Adc1.axf: Error: L6200E: Symbol TxIntStat multiply defined (by lpc17xx_systick.o and main.o).
.\Objects\Adc1.axf: Error: L6200E: Symbol TxIntStat multiply defined (by lpc17xx_uart.o and main.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 15 error messages.
".\Objects\Adc1.axf" - 15 Error(s), 2 Warning(s).
Target not created.

Please Help!!!