0 Replies Latest reply on Sep 23, 2015 11:30 AM by winston.on.job

    undefined reference to `__stdin' & undefined reference to `__fgetc_unlocked'




      I follow the quark-x1000-bsp-build-sw-rel-user-guide.pdf to build one toolchain installer, iot-devkit-eglibc-x86_64-image-full-i586-toolchain-1.6.1.sh; then I use following program to test it, and got two errors, what happened?



      #include <stdio.h>


      int main() {

              printf("press a key...");




      $ . /opt/iot-devkit/1.6.1/environment-setup-i586-poky-linux

      $ $CC -o test test.c

      /tmp/ccvHx0P4.o: In function `main':

      test.c:(.text+0x16): undefined reference to `__stdin'

      test.c:(.text+0x56): undefined reference to `__fgetc_unlocked'

      collect2: error: ld returned 1 exit status


      Best Regards