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

Similar Threads
thread Thread Starter Forum Replies Last Post
Xcode Error rebner iPhone/iPad Programming 7 Jan 26, 2014 12:52 PM
Error in xcode! 8220347 iPhone/iPad Programming 2 Jul 27, 2013 07:40 PM
Resolved: ARMv7 error in Xcode xArtx iPhone/iPad Programming 8 Jun 18, 2013 11:44 AM
Moving from xcode 3.2 to xcode 4.5.2 compilation error for 'abs' macro in stdlib.h hrishidev Mac Programming 7 Jun 2, 2013 10:36 AM
A 3.2.5 Project on Xcode 4 SIGBART error JamerTheProgram iPhone/iPad Programming 6 Aug 29, 2012 04:51 PM

Forum Jump

All times are GMT -5. The time now is 03:28 PM.

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

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