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 test ncurses program to run independent of cygwin?


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


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