• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: unknown symbol '_stdscr'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unknown symbol '_stdscr'


  • Subject: Re: unknown symbol '_stdscr'
  • From: Cédric Luthi <email@hidden>
  • Date: Fri, 7 Jul 2006 20:50:34 +0200

On 7 juil. 06, at 19:30, email@hidden wrote:

when I try to compile this C-code for the Terminal in Xcode, I get this error:
ZeroLink: unknown symbol '_stdscr' hello has exited due to signal 6 (SIGABRT).
What's wrong? I've even added the compiler flag -lcurses to my hello.c.

Just drag the /usr/lib/libcurses.dylib file into your project. It will automatically add libcurses.dylib into the "Link Binary With Libraries" phase of your current target and this will solve your ZeroLink problem. This tip work for any library you want to link to by the way.
In your case, you'll get another problem then which will be "Error opening terminal: unknown." The only solution I have found for now is to run the program from the Terminal.app instead of running it from Xcode. Unfortunately, I am unfamiliar with ncurses so I have no better proposal. I guess that this problem is closely related to the fact that the Run log of Xcode is not a real terminal.


Cédric Luthi _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >unknown symbol '_stdscr' (From: email@hidden)

  • Prev by Date: Re: Universal binary & multiple OS targets
  • Next by Date: linking fails...... cant locate file for -lfmod
  • Previous by thread: unknown symbol '_stdscr'
  • Next by thread: Re: unknown symbol '_stdscr'
  • Index(es):
    • Date
    • Thread