Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training


multiple definition errors while building PIC24 based project

Posted by themadmstrmnd on February 11, 2016

I am getting multiple definition errors while building a project for a PIC24 platform. The functions the compiler is erroring on is found in list.c. I can't think why this is happening. list.h is of course protected from the ifndef LIST_H. The FreeRTOS files have not been modified.

I am using version 8.2.3

rtos/list.c:80: multiple definition of _vListInitialise' build/default/production/rtos/list.o(.text+0x0):rtos/list.c:80: first defined here build/default/production/rtos/list.o(.text+0x36): In functionvListInitialiseItem': rtos/list.c:105: multiple definition of _vListInitialiseItem' build/default/production/rtos/list.o(.text+0x36):rtos/list.c:105: first defined here build/default/production/rtos/list.o(.text+0x44): In functionvListInsertEnd': rtos/list.c:117: multiple definition of _vListInsertEnd' build/default/production/rtos/list.o(.text+0x44):rtos/list.c:117: first defined here build/default/production/rtos/list.o(.text+0x80): In functionvListInsert': rtos/list.c:146: multiple definition of _vListInsert' build/default/production/rtos/list.o(.text+0x80):rtos/list.c:146: first defined here build/default/production/rtos/list.o(.text+0xf2): In functionuxListRemove': rtos/list.c:213: multiple definition of `_uxListRemove' build/default/production/rtos/list.o(.text+0xf2):rtos/list.c:213: first defined here c:program files (x86)microchipxc16v1.23binbin..bin/elf-ld.exe: Link terminated due to previous error(s). make[2]: *** [dist/default/production/coreModule.X.production.hex] Error 255 make[1]: *** [.build-conf] Error 2 make: *** [.build-impl] Error 2

multiple definition errors while building PIC24 based project

Posted by heinbali01 on February 11, 2016

Hi Nick,

Are you sure you didn't include the list.o module two times?

Can you check the complete command that is issued for linking?

I think it's got nothing to do with the header file list.h: those are only function prototypes like this one:

~~~~ void vListInitialise( Listt * const pxList ) PRIVILEGEDFUNCTION; ~~~~

Did you define PRIVILEGED_FUNCTION somehow?


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.

Free TCP/IP and file system demos for the RTOS

Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists