Re: unknown symbol '_stdscr'
Re: unknown symbol '_stdscr'
- Subject: Re: unknown symbol '_stdscr'
- From: Frederick Cheung <email@hidden>
- Date: Sun, 9 Jul 2006 22:03:43 +0100
On 9 Jul 2006, at 20:38, email@hidden wrote:
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
This helped while Active Build Configuration was set to Debug.
After switching to "Release" Xcode
responded with an error, the ncurses library seems to be PPC only.
After removing i386 as target it compiled.
Now the problem is, that the ncurses library hasn't been included
in the built application. I've already
turned on static linking. How can I make sure that my program runs
on a Mac without Xcode installed?
Also I do wonder if it is appropriate to file those bugs / feature-
requests to Apple:
- Xcode debugging isn't possible work when input/output goes to
Terminal.app
- Xcode doesn't use curses library despite its including in the C
source code header
#including something and linking in a library are completely distinct
things, for perfectly good reasons
- ncurses library is PPC only
The one in /Developer/SDKs/MacOSX10.4u/sdk is universal (ie set your
SDK appropriately)
Fred
Thanks!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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