Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: Date: Tue, 25 Oct 2005 16:38:04 -0700 From: Jeff Scudder To: cygwin AT cygwin DOT com Subject: undefined references compiling gcc with ncurses MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j9PNcHHj022019 Greetings, I am a curses newbie and having trouble running a simple curses program. I haven't run into a discussion thus far on the specific problem I'm having and I imagine there is a simple solution. My program is named ctest.c and is as follows: #include #include int main() { initsscr(); cbreak(); noecho(); char x = getch(); while(x != 'q') { printf("Entered: %c\n",x); x = getch(); } endwin(); } And I compile using gcc -lncurses ctest.c When linking I get an undefined reference for each curses function. I'm sure I'm doing something wrong. Thank you, JS -- 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/