You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/home/holla/OPI.GPIO/source/constants.h:30: multiple definition of `pud_off'; build/temp.linux-aarch64-3.9/source/constants.o:/home/holla/OPI.GPIO/source/constants.h:30: first defined here
The text was updated successfully, but these errors were encountered:
mark all declared variables in .h files as 'external' (just add 'external ' (without quotes) before any variable declaration in the .h files when you had an error)
declare all the PyObject pointers in the constants.c file (also declare them external in the .h)
In soft_pwm.c declare the pthreads_t threads :
static pthreads_t threads;
debian 11 bullseye
Python 3.9.2
sudo python3 setup.py install
linker throws about 50 multiple definition errors
/usr/bin/ld: build/temp.linux-aarch64-3.9/source/py_gpio.o:/home/holla/OPI.GPIO/source/constants.h:30: multiple definition of `pud_off'; build/temp.linux-aarch64-3.9/source/constants.o:/home/holla/OPI.GPIO/source/constants.h:30: first defined here
The text was updated successfully, but these errors were encountered: