Menu

#2 undefined reference to `pow'

v1.0 (example)
open
None
5
2015-01-25
2015-01-25
Arpit Garg
No

The following error message is shown while compiling

root@xca:~/xc/xcalib-src# make xcalib
cc -O2 -c xcalib.c -I/usr/X11R6/include -DXCALIB_VERSION=\"0.8\"
cc -O2 -L/usr/X11R6/lib -lm -o xcalib xcalib.o -lX11 -lXxf86vm -lXext
xcalib.o: In function read_vcgt_internal': xcalib.c:(.text+0x16a7): undefined reference topow'
xcalib.c:(.text+0x16f3): undefined reference to pow' xcalib.c:(.text+0x173f): undefined reference topow'
xcalib.o: In function main': xcalib.c:(.text.startup+0x654): undefined reference topow'
xcalib.c:(.text.startup+0x6bd): undefined reference to pow' xcalib.o:xcalib.c:(.text.startup+0x726): more undefined references topow' follow
collect2: error: ld returned 1 exit status
make: *** [xcalib] Error 1

Discussion


Log in to post a comment.