Compiling Metis-5.0pre2 in Windows

We used the precompiled library of Version 4 to link with our fortran code. Now we need larger arrays in our fortran code and are compiling using 64 bit (Intel fortran). We assume we will also need 64 bit metis, but we are not sure.

We are trying to run the makefile on a Windows XP system via cygwin using MS VC++ 2005. Below is the command line and subsequent output. Not being C programmers we are not sure what the problem is.

Thanks for any suggestions,

Randy

$ make INCDIR="-I 'c:/Program Files/Microsoft Visual Studio 8/VC/include' -I 'c

:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/include' -I 'c:/cygwi

n/usr/include'" all

make -C GKlib/trunk

make[1]: Entering directory `/cygdrive/d/fracalt23/metis-5.0pre2/GKlib/trunk'

cl -DWIN32 -DMSC -D_CRT_SECURE_NO_DEPRECATE /Ox -g -I./ -I 'c:/Program Fil

es/Microsoft Visual Studio 8/VC/include' -I 'c:/Program Files/Microsoft Visual S

tudio 8/VC/PlatformSDK/include' -I 'c:/cygwin/usr/include' /c b64.c /Fo../buil

ds/MSWIN-x86/b64.obj

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86

Copyright (C) Microsoft Corporation. All rights reserved.

cl : Command line warning D9002 : ignoring unknown option '-g'

b64.c

gk_proto.h(42) : error C2061: syntax error : identifier 'gk_csum'

gk_proto.h(42) : error C2059: syntax error : ';'

gk_proto.h(42) : error C2059: syntax error : 'type'

gk_proto.h(43) : error C2061: syntax error : identifier 'gk_isum'

gk_proto.h(43) : error C2059: syntax error : ';'

gk_proto.h(43) : error C2059: syntax error : 'type'

gk_proto.h(46) : error C2061: syntax error : identifier 'gk_idxsum'

gk_proto.h(46) : error C2059: syntax error : ';'

gk_proto.h(46) : error C2059: syntax error : 'type'

gk_proto.h(52) : error C2061: syntax error : identifier 'gk_cnorm2'

gk_proto.h(52) : error C2059: syntax error : ';'

gk_proto.h(52) : error C2059: syntax error : 'type'

gk_proto.h(53) : error C2061: syntax error : identifier 'gk_inorm2'

gk_proto.h(53) : error C2059: syntax error : ';'

gk_proto.h(53) : error C2059: syntax error : 'type'

gk_proto.h(56) : error C2061: syntax error : identifier 'gk_idxnorm2'

gk_proto.h(56) : error C2059: syntax error : ';'

gk_proto.h(56) : error C2059: syntax error : 'type'

gk_proto.h(57) : error C2061: syntax error : identifier 'gk_cdot'

gk_proto.h(57) : error C2059: syntax error : ';'

gk_proto.h(57) : error C2059: syntax error : 'type'

gk_proto.h(58) : error C2061: syntax error : identifier 'gk_idot'

gk_proto.h(58) : error C2059: syntax error : ';'

gk_proto.h(58) : error C2059: syntax error : 'type'

gk_proto.h(61) : error C2061: syntax error : identifier 'gk_idxdot'

gk_proto.h(61) : error C2059: syntax error : ';'

gk_proto.h(61) : error C2059: syntax error : 'type'

gk_proto.h(85) : error C2061: syntax error : identifier 'gk_getfsize'

gk_proto.h(85) : error C2059: syntax error : ';'

gk_proto.h(85) : error C2059: syntax error : 'type'

make[1]: *** [../builds/MSWIN-x86/b64.obj] Error 2

make[1]: Leaving directory `/cygdrive/d/fracalt23/metis-5.0pre2/GKlib/trunk'

make: *** [all] Error 2

RE: The pre2 version of Metis

The pre2 version of Metis has not yet been made Visual studio compatible. It can be done but it will require some work as the C compiler in VS2005 is not c99 compliant.

george

RE: I'm using metis 4 within

I'm using metis 4 within windows and linux.
within windows we use only visual studio without any cygwin (and don't want to use cygwin at all!). that means we only have the VS 2005 compiler.
is there a way around just to get metis 5.0 compiled? we get the same errors as described.
Right now I just had have to doanload a "pcreposix" library which is needed in GKLib.h.
Thus.. any workaround, yet?

RE: How to compile metis 4 using VS 2005 only

I can compile metis 4 using VS 2005 only and generate the "libmetis.lib". But I failed to call it successfully. I've to use a metis lib from somebody else. (The metis I used is the metis-4.0.zip (binary for windows) in this web)

Could you help me? Thanks in advance.

RE: 64 bit Windows Metis

We can work around the lack of a 64 bit Windows library by including the Metis calls in a 32 bit standalone preprocessor for our finite element program instead of having it call the Metis routines directly.

Can you hazard a guess when a 64 bit Version 5 Windows library might be available. It will help us to decide whether to wait or use the work around solution.

Thanks,
Randy

RE: Folks, The pre3 release of

Folks,

The pre3 release of Metis will be a substantial rewrite of the pre2 as it will support flexible data types (e.g., 32/64bit indices and 32/64/float/double weights). As such any changes that you make in pre2 will not carry forward.

As far as when pre3 will be out, most likely by the end of summer.

RE: Pre3

Do you have an idea if this version will work without problems within VS 2005?
Would be nice. Especially the "double" weights would really be "a nice to have" feature ;)

RE: Pre3

sorry.. double post