Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem building on debian 12 (gcc 12.2) #4

Open
openhacker opened this issue Feb 18, 2024 · 0 comments
Open

problem building on debian 12 (gcc 12.2) #4

openhacker opened this issue Feb 18, 2024 · 0 comments

Comments

@openhacker
Copy link

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:

cm_per_addr.patch.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant