Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 7, 2012, 06:33 AM   #1
cesarleitao
macrumors newbie
 
Join Date: Dec 2012
xcode error while working help!

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
cesarleitao is offline   0 Reply With Quote
Old Dec 7, 2012, 07:52 AM   #2
gnasher729
macrumors G5
 
gnasher729's Avatar
 
Join Date: Nov 2005
Quote:
Originally Posted by cesarleitao View Post
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.
gnasher729 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:05 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC