Re: How to link the following library under Cygwin?

2002-12-21 Thread Andrew Markebo
/ Elfyn McBratney <[EMAIL PROTECTED]> wrote: | Try this: > | $ gcc -o test -L. libmetis.a initialize.c > | You need to include the static archive into your image. I'm pretty sure the -l{} |only applies to shared libraries. Just a short note, more that putting the lib at the end, -lmetis is not

Re: How to link the following library under cygwin?

2002-12-20 Thread Christopher Faylor
On Fri, Dec 20, 2002 at 03:00:13PM -0800, Elfyn McBratney wrote: >Try this: > > $ gcc -o test -L. libmetis.a initialize.c > >You need to include the static archive into your image. I'm pretty sure the -l{} only >applies to shared libraries. Close. gcc -o test initialize.c libmetis.a Th

Re: How to link the following library under Cygwin?

2002-12-20 Thread Elfyn McBratney
Try this: $ gcc -o test -L. libmetis.a initialize.c You need to include the static archive into your image. I'm pretty sure the -l{} only applies to shared libraries. Elfyn [EMAIL PROTECTED] --- Zhaosong Lu <[EMAIL PROTECTED]> wrote: >Dear all, > >I dowload one graph partition package calle

How to link the following library under Cygwin?

2002-12-20 Thread Zhaosong Lu
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 initiali