You must put libraries after the objects that need them. See: https://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries
So you probably want: gcc -O2 -Wuninitialized -Wall -D_FORTIFY_SOURCE=2 -Wformat -Wno-multichar -Wreturn-type -Wswitch -Wunused-variable -g -pthread -o sys_basher sys_main.o sys_utils.o sys_disk.o sys_kernel.o sys_fp.o sys_int.o sys_mem.o lin_utils.o sys_sensors3.o -lsensors -lm Since this is not a bug in Ubuntu, I'm marking this as Invalid. If you disagree, please explain and set back to New. See http://www.ubuntu.com/support/community if you need further community support. ** Changed in: lm-sensors (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1348945 Title: -lsensors doesn't link to libsensors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lm-sensors/+bug/1348945/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
