Re: unknown symbol '_stdscr'
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