LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-28-2004, 10:45 AM   #1
joakim12
Member
 
Registered: Nov 2003
Location: Estonia
Distribution: Ubuntu 18.04
Posts: 82

Rep: Reputation: 15
Compiling Ncurses source under cygwin.


I'm compiling like this:

gcc -lncurses -Wall -o rebane main.c

And it says that:

/cygdrive/c/DOCUME~1/LEHOPR~1/LOCALS~1/Temp/ccWaYTee.o(.text+0x57b):main.c: undefined reference to `_initscr'

etc.....


How to solve the problem?

Leho Pärnapuu
 
Old 07-04-2004, 12:37 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
By googling words "ncurses cygwin _initscr" and taking first hit.
You get to page: http://www.cygwin.com/ml/cygwin/2000-11/msg00263.html
(change the order of parameters).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cygwin -> compiling lib3ds hylke General 0 06-21-2005 02:02 AM
Error compiling ncurses in lfs 6.0 Drunkalot Linux From Scratch 2 12-25-2004 11:21 PM
compiling opengl with cygwin adhara Programming 0 07-28-2004 05:58 AM
Problem compiling programs using ncurses library (gcc 3.2.2 and RH9 default inst.) jclark7777 Linux - Newbie 1 07-20-2004 01:59 PM
compiling program that uses ncurses calble Programming 4 08-10-2003 04:30 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration