Re: How to call a METIS subroutine from my FORTRAN code.



One further thought (on the C side - I use Intel C/C++ for Windows):

I needed to modify metis.h as follows:

/*
* Copyright 1997, Regents of the University of Minnesota
*
* metis.h
*
* This file includes all necessary header files
*
* Started 8/27/94
* George
*
* $Id: metis.h,v 1.1 1998/11/27 17:59:21 karypis Exp $
*/


#define __VC__

#include <stdio.h>
#ifdef __STDC__
#include <stdlib.h>
#else
#include <malloc.h>
#endif
/*
* #include <strings.h>
*/
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <stdarg.h>
#include <time.h>

#ifdef DMALLOC
#include <dmalloc.h>
#endif

#include <defs.h>
#include <struct.h>
#include <macros.h>
#include <rename.h>
#include <proto.h>

I then compiled all the .c files and used the linker to make a .lib
file ( .a in Linux parlance?).

I then compiled my Fortran source and included a search of the .lib
file on the final link.

By the way, sorry about the blank response initially - my first time to
try Google with this newsgroup and I was too fast at pressing buttons.

Hope this helps,

Edmund

.