nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] [PATCH] index/RGB colors and italic/reverse/underline a


From: David Ramsey
Subject: Re: [Nano-devel] [PATCH] index/RGB colors and italic/reverse/underline attributes
Date: Thu, 15 Feb 2018 18:55:28 -0600

I've tried applying this patchset in order to test it, but it fails at
the linking stage on my system:

gcc  -g3 -Wall   -o nano browser.o chars.o color.o cut.o files.o
global.o help.o history.o move.o nano.o prompt.o rcfile.o search.o
text.o utils.o winio.o ../lib/libgnu.a   -lz -lmagic  -lncursesw
color.o: In function `init_lut':
/home/dramsey/software/Slackware/nano/git/nano-colors/src/color.c:492:
undefined reference to `round'
/home/dramsey/software/Slackware/nano/git/nano-colors/src/color.c:493:
undefined reference to `round'
collect2: error: ld returned 1 exit status
Makefile:1540: recipe for target 'nano' failed
make[2]: *** [nano] Error 1
make[2]: Leaving directory
'/home/dramsey/software/Slackware/nano/git/nano-colors/src'
Makefile:1543: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
'/home/dramsey/software/Slackware/nano/git/nano-colors'
Makefile:1482: recipe for target 'all' failed
make: *** [all] Error 2

According to the manual page, the round() function is in libm.  If I
manually add "-lm" to LDFLAGS when trying to build (since I'm not sure
how to adjust Makefile.am to add it there), linking succeeds.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]