[riot-devel] Multiple definitions of tranceiver_pid using c++11

Martin L. martin.landsmann at haw-hamburg.de
Thu Sep 12 10:01:57 CEST 2013


Hi all,

Im currently about to finish compatibility changes to provide compiling the default project for MSB-A2 using c++11.
Now I running into a problem when linking, where transceiver_pid is defined multiple times in every file including the cc110x_ng.h

./projects/RIOT/sys/shell/commands/sc_cc110x_ng.c:33: multiple definition of `transceiver_pid'
./projects/RIOT/drivers/cc110x_ng/cc110x.c:55: multiple definition of `transceiver_pid'
./projects/RIOT/drivers/cc110x_ng/cc110x-rx.c:48: multiple definition of `transceiver_pid'
./projects/RIOT/drivers/cc110x_ng/cc110x-tx.c:32: multiple definition of `transceiver_pid'
./projects/RIOT/drivers/cc110x_ng/spi/cc110x_spi.c:50: multiple definition of `transceiver_pid'
./boards/msba2-common/drivers/msba2-cc110x.c:90: multiple definition of `transceiver_pid'

./projects/default/main.c:15: first defined here

This shouldn't happen as the #define CC1100_H protects (at least it should) the multiple inclusion of the header file.

I would like to ask if someone has an idea or hint where to look?
Thanks.

Best regards,
Martin


More information about the devel mailing list