You are not logged in.
After upgrading libnsbmp from 0.1.6-2 to 0.1.6-3, compiling my program results in undefined reference errors when linking.
The only change between these versions seems to be the addition of -ffat-lto-objects.
Does this change mean I need to change something about how I compile, or is it a bug with the package?
Here's a minimal test case:
// test.c
#include <libnsbmp.h>
int main() {
bmp_decode(NULL);
}
With libnsbmp 0.1.6-2:
$ gcc test.c -lnsbmp
$
With libnsbmp 0.1.6-3:
$ gcc test.c -lnsbmp
/usr/bin/ld: /tmp/ccoZxU7L.o: in function `main':
test.c:(.text+0xa): undefined reference to `bmp_decode'
collect2: error: ld returned 1 exit status
$
Last edited by peterfab9845 (2022-03-14 22:48:42)
Offline
Solved with libnsbmp-0.1.6-6. See https://bugs.archlinux.org/task/74092
Offline