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: 1.5.25-15: First steps with ncurses programming: can NOT build Hello_world app


Dave Korn wrote:

>   Right; but seeing as he /didn't/ add -ltinfo, he would have ended up with
> exactly the error we saw, wouldn't he?

No, because the headers that came with 5.7-2 had macros that turned his
code 'curscr' into 'ncwrap_curscr()'.  In the briefly released 5.7-1 the
macros turned 'curscr' into '_nc_curscr()'.  So, the only way his object
code would be "looking" for the symbol "_curscr" would be if he was
using the headers from ncurses-5.5-3 or older.  But the headers and
import libraries are distributed in the same package; it's not possible
to have the headers from one release and the import libraries from a
different one.

Unless you do
$ gcc -o foo.o -c foo.c

and then upgrade ncurses-devel, before doing
$ gcc -o foo.exe foo.o -lncurses

But Alexey did the compile and link all in one command.  That's a REALLY
fast setup.exe...

That's why I was confused.  But, 'tis working now, with 5.7-3. So...

--
Chuck


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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