Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cesarleitao

macrumors newbie
Original poster
Dec 7, 2012
1
0
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
 
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

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.