When I try to compile with a newer version of gcc, I get this error
gcc -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wextra -funsigned-char -DGIT
VERSION='"3.2.1-2013-04-26-Format:%h$"' -O2 -fPIC -o bin/optirun src/module.o src/bbconfig.o src/bblogger.o src/bbrun.o src/bbsocket.o src/driver.o src/optirun.o src/bbsocketclient.o -lglib-2.0 -lrt
/usr/bin/ld: src/bblogger.o:(.bss+0x220): multiple definition of `bb_pm_method_string'; src/bbconfig.o:(.data.rel.local+0x0): first defined here
/usr/bin/ld: src/bbsocket.o:(.bss+0x0): multiple definition of `bb_pm_method_string'; src/bbconfig.o:(.data.rel.local+0x0): first defined here
/usr/bin/ld: src/driver.o:(.bss+0x0): multiple definition of `bb_pm_method_string'; src/bbconfig.o:(.data.rel.local+0x0): first defined here
/usr/bin/ld: src/optirun.o:(.bss+0x0): multiple definition of `bb_pm_method_string'; src/bbconfig.o:(.data.rel.local+0x0): first defined here
/usr/bin/ld: src/bbsocketclient.o:(.bss+0x0): multiple definition of `bb_pm_method_string'; src/bbconfig.o:(.data.rel.local+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:604: bin/optirun] Error 1
I am on Slackware current, gcc version 10.2.0, kernel 5.10.3
When I try to compile with a newer version of gcc, I get this error
I am on Slackware current, gcc version 10.2.0, kernel 5.10.3