This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Compile test ncurses program to run independent of cygwin?
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Daniel Goldman <dgoldman at ehdp dot com>, cygwin at cygwin dot com
- Date: Thu, 5 Nov 2015 20:30:26 +0300
- Subject: Re: Compile test ncurses program to run independent of cygwin?
- Authentication-results: sourceware.org; auth=none
- References: <563B0A76 dot 3060509 at ehdp dot com>
- Reply-to: cygwin at cygwin dot com
Greetings, Daniel Goldman!
> # Found /usr/x86_64-pc-cygwin/sys-root/usr/lib/libncurses.a
> # Will this let me compile for dos window? Apparently not.
> $ i686-pc-mingw32-gcc -I /usr/x86_64-pc-cygwin/sys-root/usr/include/
> ncurses.c -L /usr/x86_64-pc-cygwin/sys-root/usr/lib/ -lncurses
> ... undefined reference to `initscr'
> ... more "undefined reference" error messages
> ------------------------------------------------------------
> My questions:
> 1) Did I make a compile-line syntax error? Is there a variation of the
> i686-pc-mingw32-gcc command line so I can use cygwin to compile
> ncurses.c to run in dos window, independent of cygwin?
I'm no expert, but my first answer would be "yes".
You shouldn't use cross-compilers directly, rather, use appropriate GCC
switches to specify host and target subsystems.
> 2) If not, to compile ncurses.c to run in dos window, independent of
> cygwin, do I have to set up the ncurses library myself?
> I tried to get an answer from the docs, it seems unclear.
--
With best regards,
Andrey Repin
Thursday, November 5, 2015 20:29:01
Sorry for my terrible english...
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple