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 X-Authentication-Warning: jedi.isye.gatech.edu: zhaosong owned process doing -bs Date: Fri, 20 Dec 2002 17:32:46 -0500 (EST) From: Zhaosong Lu To: cygwin AT cygwin DOT com cc: Zhaosong Lu Subject: How to link the following library under Cygwin? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Dear all, I dowload one graph partition package called "metis" and build it into "libmetis.a". Then I write one file "initialize.c" which calls one function 'METIS_NodeND' inside from the package "metis". After compilation and linking them under Cygwin/xFree86 as follows: gcc -o test initialize.c -L. -lmetis gives the following information: initialize.o(.text+0x4b8):initialize.c: undefined reference to '_METIS_NodeND' collect2: ld returned 1 exit status. AS we know, it is fine under Linux. Would you like to tell me how to compile the library "libmetis.a" and my "initialize.c" under Cygwin/XFree86? Your help will be highly appreciated. Sincerely, Zhaosong ---------------------------------------------- Zhaosong Lu School of Industrial and Systems Engineering Georgia Institute of Technology 30332 Tel:1-404-873-1929(H) 1-404-894-4318(O) ---------------------------------------------- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/