xcode error while working help!

Discussion in 'Mac Programming' started by cesarleitao, Dec 7, 2012.

  1. cesarleitao macrumors newbie

    Dec 7, 2012
    Hi guys.. i was working with xcode programing C language, and when i was using the function getch(); i'm stuck at this:

    Undefined symbols for architecture x86_64:
    "_stdscr", referenced from:
    _main in main.o
    _registar_clientes in main.o
    "_wgetch", referenced from:
    _main in main.o
    _registar_clientes in main.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    how to solve this without using gets();, fgets(); or getchar();?
    help please
  2. gnasher729 macrumors P6


    Nov 25, 2005
    stdscr and wgetch are not Standard C functions, but functions that Microsoft supplies for Windows. Unless you can convince Microsoft to provide these functions, you're out of luck.

    But then you found the solution already: Use Standard C functions instead.

Share This Page