Menu

#17 sfunctions.c:(.text+0x269b): undefined reference to `input_bit'

V.1.22
closed-fixed
None
5
2016-07-23
2016-07-21
No

Fedora 23:

$ cd /home/rick/src/X11Basic-1.24

$ make static
gcc -fomit-frame-pointer -Wall -O3 -o xbasic.static main.o x11basic.a -ldl -lm -lpthread -lasound -lutil -lgmp -lgmp -lX11
x11basic.a(sfunctions.o): In function f_arids': sfunctions.c:(.text+0x269b): undefined reference toinput_bit'
collect2: error: ld returned 1 exit status
Makefile:527: recipe for target 'xbasic.static' failed
make: *** [xbasic.static] Error 1

$ grep input_bit .[ch]
decode.c:inline int input_bit() {
decode.c: value = 2
value+input_bit(); / Move in next input bit. /
decode.h:inline int input_bit();
sfunctions.c: for(i=1;i<=Code_value_bits;i++) value=2*value+input_bit();

Do you know why sfunctions.c doesn't have a function called input_bit()?

Discussion

  • Markus Hoffmann

    Markus Hoffmann - 2016-07-22

    Hi, thanks for the feedback. This bug should have been fixed already. The Version 1.24-41 on gitlab has that fixed. (in decode.c the inline statement should be removed.)

     
  • Rick Richardson

    Rick Richardson - 2016-07-22

    Maybe make a 1.25 for sourceforge users???

     
  • Markus Hoffmann

    Markus Hoffmann - 2016-07-23

    I have updated the source packge on sourceforge.

     
  • Markus Hoffmann

    Markus Hoffmann - 2016-07-23
    • Owner: Anonymous --> Markus Hoffmann
    • Status: unread --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB