delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <480E39F4.C39D8E72@dessent.net> |
Date: | Tue, 22 Apr 2008 12:18:12 -0700 |
From: | Brian Dessent <brian AT dessent DOT net> |
X-Mailer: | Mozilla 4.79 [en] (Windows NT 5.0; U) |
MIME-Version: | 1.0 |
To: | Robby Gieringer <thebhead AT yahoo DOT com> |
CC: | cygwin AT cygwin DOT com |
Subject: | Re: 1.5.25-11 gcc compile issue |
References: | <997030 DOT 99301 DOT qm AT web90606 DOT mail DOT mud DOT yahoo DOT com> |
X-IsSubscribed: | yes |
Reply-To: | cygwin AT cygwin DOT com |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Robby Gieringer wrote: > gcc -o code48_win -I/usr/include/ncurses -lncurses > -D_WIN_ code_v49w.c > (It gives a few warnings which are fine...then) > : undefined reference to `_initscr' > : undefined reference to `_newwin' > : undefined reference to `_LINES' > : undefined reference to `_COLS' > : undefined reference to `_keypad' > : undefined reference to `_nonl' > : undefined reference to `_noecho' > : undefined reference to `_wgetch' > : undefined reference to `_wmove' > : undefined reference to `_wrefresh' > (And continues unto about another 1100 undefined > references which a lot of them repeat) > > This has compiled on nearly every other box imaginable > with no problems. I feel it now reads in all the > header files, but then blows up once it goes to the > runtime. If there is a solution to this, I would be > very grateful. Again, sorry for being a newb and > thanks for your help! The order that you specify things on the compile command matters, and you've got yours in the wrong order. Put -lncurses at the end after the objects that use symbols from it, and it should work fine. This matters on the other systems too, but they are more forgiving of this error. That doesn't mean it's still not an error. Brian -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |