This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: compile ncurses "hello world" to run independent of cygwin?


On Sun, Nov 1, 2015 at 10:04 PM, Daniel Goldman <dgoldman@ehdp.com> wrote:
>
> What am I doing wrong? How do I use cygwin to compile the test ncurses
> program so it can run in a dos terminal, independent of cygwin? I looked
> around the docs and archives and could not figure out.

Was libncurses built for the MinGW target on the Cygwin host?

Keep in mind that this job is a cross compile, so ncurses and every
other dependency must be built for the MinGW runtime.  The mingw-* and
mingw64-* packages for Cygwin are just the toolchain plus some
essentials; there is no mingw-libncurses-devel package in
distribution.

Unless there is a specific reason to cross through Cygwin, it could be
easier to use the native MinGW environment directly:

* http://www.mingw.org/wiki/Getting_Started

And link against the ncurses redistributable:

* http://invisible-mirror.net/ncurses/ncurses.html

--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]