-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Not sure why it worked before -- building on debian 12 I see:
gcc -o ADT7301 ./Demo/Demo_ADT7301/ADT7301.c -L ./BBBio_lib/ -liobb
gcc -o SevenScan ./Demo/Demo_SevenScan/SevenScan.c -L ./BBBio_lib/ -liobb
gcc -o SMOTOR ./Demo/Demo_ServoMotor/ServoMotor.c -L ./BBBio_lib/ -liobb
/usr/bin/ld: ./BBBio_lib//libiobb.a(BBBiolib_PWMSS.o):(.bss+0x0): multiple definition of `cm_per_addr'; ./BBBio_lib//libiobb.a(BBBiolib.o):(.bss+0x1c): first defined here
Looking at the coding style, its a good idea to not have externs in C files but have them all in header files that are included.
The following patch solves the problem:
Metadata
Metadata
Assignees
Labels
No labels