0 Replies Latest reply on Mar 10, 2010 7:57 PM by 807576

    [Standalone Program] simple I/O using hyperterminal

      I am trying to create simple standalone program to get some values from keyboard via hyperterminal and let Opensparc on FPGA do the processing and then display the result back in hyperterminal. I have sunStudio compiler. However, it seems scanf is not recognized by the compiler?

      /opt/sunstudio12.1/bin/cc -xarch=v9 -I../include -errwarn=%all -xO2 -c simple_add.c
      cc: Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs
      /usr/ccs/bin/ld -64 -e start -dn -M ../mapfile -o simpleadd -z allextract -L ../libos -los simple_add.o -L ../libc -lc
      Undefined               first referenced
      symbol                in file
      scanf simple_add.o
      ld: fatal: Symbol referencing errors. No output written to simple_add
      *** Error code 1
      make: Fatal error: Command failed for target `simple_add'
      Current working directory /home/ssoekamt/sparct1/design/sys/edk/examples/src/simple_add
      *** Error code 1
      The following command caused the error:
      cd simple_add && pwd && make install
      make: Fatal error: Command failed for target `simple_add'

      When I commented out all scanf statements in the codes, everything is working.
      any thought?
      Thank you.