Closed rahulaggarwal965 closed 10 months ago
Read the README.md and search for similar issues before posting a bug report!
Since the Makefile doesn't do it I wouldn't like to do this to support (compiling against) some ancient glibc. Being written with C++-20 btop is dependent on recent compilers anyway so it wouldn't make much sense to support (compiling against) older libc's while requiring new compilers.
Sounds good. Since it looks like you want to have this behavior explicitly, I will close this for now.
Describe the bug
On Ubuntu 20.04 (g++-10), when compiling from the v1.3.0 tag (I also tested on main) with GPU_SUPPORT enabled (NVIDIA), the default makefile does not include the linker flag -ldl and therefore does not compile. Adding -ldl solves this problem.
To Reproduce
I expect the compilation to resolve successfully. Below I have attached a screenshot and a log of the error message.
Text Log
``` /usr/bin/ld: /tmp/btop.c8wIWg.ltrans16.ltrans.o: in function `Shared::init()':However, when I compile using the following command:
btop compiles successfully.
This seems to be an easy fix, but I would defer to you on whether this fix is only needed on certain platforms/distributions/kernel versions.
Info (please complete the following information):