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 Reply-To: Cygwin List Message-Id: <6.0.1.1.0.20040110141011.037d1900@127.0.0.1> X-Sender: Date: Sat, 10 Jan 2004 14:16:09 -0500 To: Paul-Kenji Cahier , cygwin AT cygwin DOT com From: Larry Hall Subject: Re: Ncurses prob In-Reply-To: <1046266613.20040110051914@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> <1046266613 DOT 20040110051914 AT F1-Photo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 11:19 PM 1/9/2004, Paul-Kenji Cahier you wrote: >hello again, > > >new question now, since every lib compiled well i went to the main >program and it cant find the new lib i just compiled, so i was >wondering what is it looking for when one does -lnameofthelib >cuz on my linux box everything goes fine, and i've checked the include >which are exactly the same > > ><05:11:07> DeathWolf AT lafiel:/home/calendar/src$ make >gcc -g -Wall -ansi -pedantic -Wwrite-strings -Wshadow -Waggregate-return -I. -I/home/calendar/include -I/usr/local/include/ncurses -I/usr/local/include -L/usr/local/lib parser.o main.o cal.o -L/home/calendar/lib -lncurses -loncurses -loxhtml -lotxt -lcal -ldate -o ../main >/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: cannot find -loncurses >collect2: ld returned 1 exit status >make: *** [all] Error 1 > > ><05:14:57> DeathWolf AT lafiel:/home/calendar/lib$ ll >total 210 >drwxrwxrwx+ 9 DeathWol None 0 Jan 10 05:08 . >drwxrwxrwx+ 8 DeathWol None 0 Jan 10 05:14 .. >drwxrwxrwx+ 2 DeathWol None 0 Jan 10 04:12 CVS >-rw-rw-rw- 1 DeathWol None 221 Nov 26 11:39 Makefile >drwxrwxrwx+ 3 DeathWol None 0 Jan 10 04:48 libcal >-rwxrwxrwx 1 DeathWol None 41038 Jan 10 05:04 libcal.so >drwxrwxrwx+ 3 DeathWol None 0 Jan 10 04:48 libdate >-rwxrwxrwx 1 DeathWol None 29857 Jan 10 05:04 libdate.so >drwxrwxrwx+ 3 DeathWol None 0 Jan 10 04:48 libdebug >-rwxrwxrwx 1 DeathWol None 26422 Jan 10 05:04 libdebug.so >drwxrwxrwx+ 3 DeathWol None 0 Jan 10 05:01 liboncurses >-rwxrwxrwx 1 DeathWol None 49859 Jan 10 05:04 liboncurses.so >drwxrwxrwx+ 3 DeathWol None 0 Jan 10 05:03 libotxt >-rwxrwxrwx 1 DeathWol None 31712 Jan 10 05:04 libotxt.so >drwxrwxrwx+ 3 DeathWol None 0 Jan 10 05:00 liboxhtml >-rwxrwxrwx 1 DeathWol None 32088 Jan 10 05:04 liboxhtml.so > OK, so you don't have liboncurses.a. That's the problem. ><05:15:45> DeathWolf AT lafiel:/home/calendar/include$ ll >total 23 >drwxrwxrwx+ 3 DeathWol None 0 Jan 10 04:48 . >drwxrwxrwx+ 8 DeathWol None 0 Jan 10 05:14 .. >drwxrwxrwx+ 2 DeathWol None 0 Jan 10 04:12 CVS >-rw-rw-rw- 1 DeathWol None 3570 Jan 10 05:14 cal.h >-rw-rw-rw- 1 DeathWol None 2744 Jan 10 05:04 libcal.h >-rw-rw-rw- 1 DeathWol None 1909 Jan 10 05:04 libdate.h >-rw-rw-rw- 1 DeathWol None 1946 Jan 10 05:04 libdebug.h >-rw-rw-rw- 1 DeathWol None 608 Jan 10 05:04 liboncurses.h >-rw-rw-rw- 1 DeathWol None 114 Jan 10 05:04 libotxt.h >-rw-rw-rw- 1 DeathWol None 102 Jan 10 05:04 liboxhtml.h >-rw-rw-rw- 1 DeathWol None 2567 Jan 10 05:14 parser.h >-rw-rw-rw- 1 DeathWol None 5998 Jan 10 05:14 queue.h > > > > > >Most libs were compiled this way: > >gcc -g -Wall -ansi -pedantic -Wwrite-strings -Wshadow -Waggregate-return -I. -I/home/calendar/include -I. -I/usr/include -I/usr/include/ncurses -I/usr/local/include -c output.c -o ../liboxhtml.so >gcc -g -shared -o ../liboxhtml.so.dll -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive ../liboxhtml.so -Wl,--no-whole-archive -L/home/calendar/lib -L/usr/lib -lintl -lncurses >cp liboxhtml.h /home/calendar/include >cp ../liboxhtml.so.dll ../liboxhtml.so (i added this line later to >check it wasnt a prob with filenames but it wasnt) Why are you naming the files *.so? These aren't shared libraries in the traditional UNIX sense. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- 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/