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 Date: Fri, 9 Jan 2004 11:43:43 +0100 From: "Gerrit P. Haase" Reply-To: "Gerrit P. Haase" Organization: Esse keine toten Tiere Message-ID: <62947850226.20040109114343@familiehaase.de> To: Paul-Kenji Cahier CC: cygwin AT cygwin DOT com Subject: Re: Ncurses prob In-Reply-To: <1991314664.20040109111718@F1-Photo.com> References: <20040109085401 DOT 53428 DOT qmail AT web11510 DOT mail DOT yahoo DOT com> <1991314664 DOT 20040109111718 AT F1-Photo DOT com> MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Paul-Kenji wrote: > Hello all, > i know it might be my fault but i'm trying to compile a prog with > ncurses under cygwin and here is what i gets: > (it compiles well, exept at link time) > make[2]: Entering directory > `/cygdrive/d/Data/calendar/lib/liboncurses' > gcc -g -Wall -ansi -pedantic -Wwrite-strings -Wshadow > -Waggregate-return -I. -I/cygdrive/d/Data/calendar/include > -I/usr/include/ncurses -I/usr/local/include -L/usr/local/lib -shared > -fPIC output.c -o ../liboncurses.so [...] > anyone knows what's going on? You need to link against the libraries containing all the symbols you're using, this is Windows, no undefined references allowded here. Try: gcc -g -Wall -ansi -pedantic -Wwrite-strings -Wshadow -Waggregate-return -I. -I/cygdrive/d/Data/calendar/include -I/usr/include/ncurses -I/usr/local/include -c output.c -o oncurses.o gcc -g -shared -o ../cygoncurses.dll \ -Wl,--out-implib=liboncurses.dll.a \ -Wl,--export-all-symbols \ -Wl,--enable-auto-import \ -Wl,--whole-archive \ oncurses.o \ -Wl,--no-whole-archive -L/usr/lib -lintl -lncurses And probably some more libs missing at your link line. HTH, Gerrit -- =^..^= http://nyckelpiga.de/donate.html -- 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/